when a cmd is typed wrong? - 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: when a cmd is typed wrong? (
/showthread.php?tid=166983)
when a cmd is typed wrong? -
WillyP - 10.08.2010
hey
i had a idea, prollys already done
but when a player types a invalid cmd,
like in the script
return "%s is a Unknown Command!",command);
would that work?
im just getting to know all of this..
Re: when a cmd is typed wrong? -
selten98 - 10.08.2010
pawn Код:
return "%s is a Unknown Command!",cmdtext[]);
i think this might work out.. (dunno for sure)
Re: when a cmd is typed wrong? -
Vince - 10.08.2010
Instead of
return 0; put:
pawn Код:
new string[128];
format(string, sizeof(string), "%s is an unknown command.", cmdtext);
return SendClientMessage(playerid, COLOR_RED, string);
Re: when a cmd is typed wrong? -
WillyP - 10.08.2010
thanks guys!