SA-MP Forums Archive
'SERVER: Unkown 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: 'SERVER: Unkown command.' (/showthread.php?tid=328424)



'SERVER: Unkown command.' - Syntax - 24.03.2012

Simple... How can I edit this line? I'll give a rep to whoever can help me, please? :3


Re: 'SERVER: Unkown command.' - DarkScripter - 24.03.2012

find "return 0;" in OnPlayerCommandText the final
replace,
pawn Код:
SendClientMessage(playerid, -1,"INVALID CMD");



Re: 'SERVER: Unkown command.' - Ironboy - 24.03.2012

Here it is
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, -1,"INVALID COMMAND");
}



Re: 'SERVER: Unkown command.' - Syntax - 24.03.2012

So, I go through and replace all 'return 0;' with what you've given me? SendClientMessage(playerid, -1,"INVALID COMMAND"); ?


Re: 'SERVER: Unkown command.' - Ironboy - 24.03.2012

Quote:
Originally Posted by Syntax
Посмотреть сообщение
So, I go through and replace all 'return 0;' with what you've given me? SendClientMessage(playerid, -1,"INVALID COMMAND"); ?
Yes it must be like this
pawn Код:
return SendClientMessage(playerid, -1,"INVALID COMMAND");



Re: 'SERVER: Unkown command.' - SpiritEvil - 24.03.2012

Under OnPlayerCommandText find the very LAST "return 0" and replace it with:

pawn Код:
return SendClientMessage(playerid, color, "Your Message Here");



Re: 'SERVER: Unkown command.' - Syntax - 24.03.2012

Thank you SpiritEvil. I appreciate your time and help, honestly!