cmd dont work :(
#1

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;
}
Reply
#2

What's the point of using strtok + sscanf.
Sscanf is far better! And I recomment you to use ZCMD with sscanf.
Reply
#3

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!!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)