Server crash if anyone type /skin higher than 299
#5

PHP код:
if(strcmp(cmd"/setskin"true) == 0
    {
        new 
tmp[256];
        
tmp strtok(cmdtext,idx);
        if(
strval(tmp) > 299 || strval(tmp) < 0) return SendClientMessage(playerid, -1,"That skin does not exists");
        
SetPlayerSkin(playerid,strval(tmp));
        return 
1;
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)