Private skin.
#1

pawn Код:
if(GetPlayerSkin(playerid) == emmetskin)
   {
       new SkinName[MAX_PLAYER_NAME];
       GetPlayerName(playerid, SkinName, sizeof(SkinName));
       if(!(strcmp(SkinName, "[BADBOY]", false) == 0))
       {
          GameTextForPlayer(playerid, "You can't take this skin!", 2500, 3);
          ForceClassSelection(playerid);
          SetPlayerHealth(playerid, 0.0);
       }
   }
Hello. How come this code not work at all? What am I doing wrong??
Reply
#2

change this:
PHP код:

if(!(strcmp(SkinName"[BADBOY]"false) == 0)) //you checking if not strcmp equal to 0! And it should be if strcmp equal to zero 
To this:

PHP код:

if(!strcmp(SkinName"[BADBOY]"false)) 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)