Command fix - 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: Command fix (
/showthread.php?tid=378634)
Command fix -
Beljulji - 18.09.2012
When i type /racedelete it teleports me to /desertcoaster how i can fix that? anyone know?
Re : Command fix -
Naruto_Emilio - 18.09.2012
post both of those commands
Re: Command fix -
Beljulji - 18.09.2012
well /racedelete command does not exist bud it should say Server:unknown Command and here is the command for /desertcoaster
Код:
if (strcmp(cmdtext,"/desertcoaster", true , 3 ) ==0)
{
SetPlayerPos(playerid,-282.6749,2633.1079,62.7912);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined /desertcoaster.",pName);
SendClientMessageToAll(yellow,string);
SendClientMessage(playerid,red,"Welcome To Desert Coaster");
return 1;
}
Re: Command fix -
Vince - 18.09.2012
Код:
if (strcmp(cmdtext,"/desertcoaster", true , 3 ) ==0)
Learn what this means!
Re: Command fix -
Beljulji - 20.09.2012
what 3 means?
Re: Command fix -
clarencecuzz - 20.09.2012
3 stands for the max length of the cell, in this case, you are saying that the length of the command is only 3 cells long, meaning that your command is actually "/de"
Replace it with this:
pawn Код:
if(strcmp(cmdtext, "/desertcoaster", true) == 0)
https://sampwiki.blast.hk/wiki/strcmp