Help: SERVER: Unknown command - 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)
+--- Thread: Help: SERVER: Unknown command (
/showthread.php?tid=289946)
Help: SERVER: Unknown command -
Kostas' - 13.10.2011
I added some new things on my gamemode,
like Speedometer, Reaction, Countdown, Savepos and Loadpos.
I compiled it and it compiled fine. But when I connect on server to test it, all my commands are Unknown commands
Why this happened?
Here is a picture:
Re: Help: SERVER: Unknown command -
Stigg - 13.10.2011
Have you returned 0 at the end of your commands ?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/blah", cmdtext, true, 10) == 0)
{
//blah
return 1;
}
if (strcmp("/blah2", cmdtext, true, 10) == 0)
{
//blah
return 1;
}
return 0;//return 0 here...
}
Re: Help: SERVER: Unknown command -
Kostas' - 13.10.2011
No, but before added these things, on my gamemode I didn't
and it worked fine.
Re: Help: SERVER: Unknown command -
FireCat - 13.10.2011
Show me OnPlayerCommandText,
www.pastebin.com
If you're afraid to post it here on the forums, PM me it.
Re: Help: SERVER: Unknown command -
Kostas' - 13.10.2011
I send you pm, please help me