One command does another 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: One command does another command (
/showthread.php?tid=84754)
One command does another command -
CJ101 - 03.07.2009
so im making a command have 2 commands
(like this)
Код:
if(strcmp(cmdtext, "/setlevel", true)==0 || strcmp(cmdtext, "/slvl", true)==0)
but if i do another command, it will do the one above instead (
this is the other command
Код:
if (strcmp("/stats", cmdtext, true, 10) == 0)
Re: One command does another command -
*ToM* - 03.07.2009
geez I haven't heard of more stupid idea lol :P why you need 2 commands if the second one works like the first one
Re: One command does another command -
CJ101 - 03.07.2009
/slvl does the same thing as /setlevel, but slvl is just a shorter way of writing it
Re: One command does another command -
ledzep - 03.07.2009
Код:
if(strcmp(cmdtext, "/setlevel", true, 9)==0 || strcmp(cmdtext, "/slvl", true, 5)==0)
Код:
if (strcmp("/stats", cmdtext, true, 6) == 0)
Try those.