GameModeExit. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GameModeExit. (
/showthread.php?tid=69060)
GameModeExit. -
MenaceX^ - 15.03.2009
So, I'm might sure there is a bug with returning GameModeExit as a same line.
pawn Код:
if(!strcmp(cmd,"/gmx",true)) return GameModeExit();
Gives you: "SERVER: Unknown command." When you use it.
It happens also when you return it with false.
You should return the GameModeExit in another line then
pawn Код:
if(!strcmp(cmd,"/gmx",true))
{
GameModeExit();
return 1;
}
This doesn't give the SERVER:Unknown command.
Re: GameModeExit. -
beckzy - 15.03.2009
Maybe GameModeExit returns 0?
Re: GameModeExit. -
MenaceX^ - 15.03.2009
Probably, doesn't matter if I return it with 1/0 it gives the same unknwon command text.
Re: GameModeExit. -
NigNog1 - 15.03.2009
Quote:
Originally Posted by MenaceX^
Probably, doesn't matter if I return it with 1/0 it gives the same unknwon command text.
|
And how does that make it a bug? If you return 0 under OnPlayerCommandText it will display SERVER: Unknown command.