[Pawn] Command not working - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Command not working (/showthread.php?tid=1817) |
Command not working - Snow - 2021-03-29 Okay so I have this weird problem with this one specific command. When player performs this command, he gets teleported somewhere else instead of where he's supposed to. But I'm calling the same command under OnDialogResponse and it works fine there. Here's the command: Code: CMD:mc(playerid, params[]) Calling it under dialog response like this Code: if(listitem ==7) Now when player types the command manually, he won't get teleported to Mount Chilliad but when he uses the dialog that calls this command, he'll be teleported here. RE: Command not working - Radical - 2021-03-29 I think the problem is with your command processor. RE: Command not working - Snow - 2021-03-29 But all other commands work fine from both sides i.e manually or via dialog. Only this one has the issue. I don't think it should be command processor. RE: Command not working - Radical - 2021-03-30 Well you may have a command with this name in one of your filterscripts. it will be executed first in the filter script and will not run in game mode. RE: Command not working - Snow - 2021-03-30 (2021-03-30, 04:27 AM)Radical Wrote: Well you may have a command with this name in one of your filterscripts. it will be executed first in the filter script and will not run in game mode. I've made sure of that. There's no such command in any other script. RE: Command not working - ImOver - 2021-04-03 (2021-03-29, 06:25 PM)Snow Wrote: Okay so I have this weird problem with this one specific command. When player performs this command, he gets teleported somewhere else instead of where he's supposed to. But I'm calling the same command under OnDialogResponse and it works fine there. Here's the command: Hey. Don't ever call a command like that "cmd_md(...)". And here's why?https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Visual/y_commands/faqs.md#questions I suggest you to use Y_Commands. And have you heard about functions. Use them. They exists for a reason. RE: Command not working - Snow - 2021-04-04 Thank you everyone. |