[SOLVED]Help with the 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: [SOLVED]Help with the command (
/showthread.php?tid=96081)
[SOLVED]Help with the command -
Butilka - 06.09.2009
Hello! Please, help. How to make a command like
pawn Код:
if(strcmp(cmd,"/sw list",true) == 0)
?
When I write a that command, it returns me with a "Unknown command".
Re: Command -
RyDeR` - 06.09.2009
Quote:
Originally Posted by E1edge
Hello! Please, help. How to make a command like
pawn Код:
if(strcmp(cmd,"/sw list",true) == 0)
?
When I write a that command, it returns me with a "Unknown command".
|
You didn't complete the command with a return.
Re: Command -
Deat_Itself - 06.09.2009
Quote:
Originally Posted by E1edge
Hello! Please, help. How to make a command like
pawn Код:
if(strcmp(cmd,"/sw list",true) == 0)
?
When I write a that command, it returns me with a "Unknown command".
|
hmm
ex if u want to make a command like it so u have to do is
if(!strcmp(cmdtext, "/tpzone sw", true))
{
SetPlayerPos(playerid,2262.7290,2035.9547,10.8203) ; //
SendClientMessage(playerid, COLOR_RED, "You have teleported to Death_Itself's Mansion!");
return 1;
}
this example is for ur understanding and u can change the SetPlayerPos
Re: Command -
MenaceX^ - 06.09.2009
I suggest you to use strtok or sscanf because this is stupid to do a command including spaces.
Re: Command -
Deat_Itself - 06.09.2009
thats easy
try it if it will give you an error so tell me
Re: Command -
Butilka - 06.09.2009
Thanks men! It works