[How To] Numeric 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [How To] Numeric command (
/showthread.php?tid=69324)
[How To] Numeric command -
_System_ - 17.03.2009
Hello all ,
Sup ?
Ok Listen How To Do The Command /Help and a topic next to him so this : /Help 1
i can't do this in space someone told me with strtock :S
What is this and how to do it ?
and how to do /Help .. Shows You A SendClientMessage's and also /Help 1
backs with error = "USAGE:/Help 1-4
thanks,
Re: [How To] Numeric command -
MenaceX^ - 17.03.2009
pawn Код:
if(!strcmp(cmd,"/help",true))
{
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /help [1-4]");
if(!strcmp(cmd,"1",true))
{
SendClientMessage(playerid,COLOR,"Help text 1.");
}
else if(!strcmp(cmd,"2",true))
{
SendClientMessage(playerid,COLOR_GREY,"Help text 2.");
}// etc etc..
Re: [How To] Numeric command -
_System_ - 17.03.2009
don't work
Re: [How To] Numeric command -
MenaceX^ - 17.03.2009
Show your code.