SA-MP Forums Archive
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: UnKnown Command. (/showthread.php?tid=360896)



UnKnown Command. - Dare Devil..... - 19.07.2012

Okay I need help regarding my game mode it works fine but if a player writes a Unknown command in the server the server do nothing and give no message I want it to give Error:Unkown Command any help please?


Re: UnKnown Command. - 123EatLag - 19.07.2012

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
(
     if(!success) SendClientMessageEx(playerid, COLOR_WHITE, ''SERVER: Unknown command type /help to see all available commands.'');
return 1;
)
sorry if it doesnt work im typing this out on my phone so i cant tab correctly but i think it will work,


Re: UnKnown Command. - Dare Devil..... - 19.07.2012

Thankyou [Repped +]


Re: UnKnown Command. - 123EatLag - 19.07.2012

yes lol i just posted it