cmd dont work :( - 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: cmd dont work :( (
/showthread.php?tid=406136)
cmd dont work :( -
dr.lozer - 09.01.2013
this cmd dont work
pawn Код:
if(!strcmp("/setskintome", cmdtext, true))
{
new tmp[256],idx,skinid,string[128];
tmp = strtok(cmdtext,idx);
if(sscanf(tmp,"d",skinid)) {
SendClientMessage(playerid, COLOR_USAGE,"[USAGE] /setskintome [skinid]");
return 1;
}
SetPlayerSkin(playerid, skinid);
format(string,128,"%s set his skinid %d with "C_CMD"/setskintome",PlayerName(playerid));
SendClientMessageToAll(COLOR_ORANGE,string);
return 1;
}
Re: cmd dont work :( -
Konstantinos - 09.01.2013
What's the point of using strtok + sscanf.
Sscanf is far better! And I recomment you to use ZCMD with sscanf.
Re: cmd dont work :( -
dr.lozer - 09.01.2013
Quote:
Originally Posted by Dwane
What's the point of using strtok + sscanf.
Sscanf is far better! And I recomment you to use ZCMD with sscanf.
|
i like OnPlayerCommandText thats y XDDDD
btw thanks for that zcmd idea ....
I LIKE YOU!!! YOUR A GOOD ( PRO ) SCRIPTER!!!!!!!!!