Why is the skin doesnt delete?
#5

Becaue you're a lazy bum and can't even script basic things, you're the one who doesn't bother opening some tutorials or pre-made gamemodes watching how scripting works.
You missed some ";" and some brackets.

pawn Код:
if(strcmp(cmd, "/delskin", true) == 0)
{
    if(PlayerInfo[playerid][pAdmin] < 6) return DenyMessage(playerid, 6);
   
    new otherplayerid = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if (strlen(tmp))
    {
        SendClientMessage(playerid,COLOR_RED,"USAGE: /delskin [playerid]")
        SendClientMessage(playerid,COLOR_RED,"This command is delete player's saved skin")
        SendClientMessage(playerid,COLOR_RED,"From now he can choose any skin he want,and his past skin deleted")
        SendClientMessage(playerid,COLOR_RED,"But you still can save another skin after you delete one")
        return 1;
    }
    if (!IsPlayerConnected(otherplayerid)) return SendClientMessage(playerid,COLOR_RED,"Warning!: Wrong ID/Player is not connected");
    new playername = GetPlayerName(otherplayerid,getplayer,sizeof(getplayer));
    new adminname = GetPlayerName(playerid,giveplayer,sizeof(giveplayer));
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have been delete %s(ID:%d) Saved skin!",playername,otherplayerid);
    SendClientMessage(otherplayerid,COLOR_LIGHTBLUE, "Admin %s(ID:%d) has been delete your saved skin",playerid,adminname);
    SetPlayerSkin(otherplayerid,PlayerOldSkin);
    GetPlayerSkin = 0;
    return 1;
}
Reply


Messages In This Thread
Why is the skin doesnt delete? - by nuriel8833 - 17.08.2009, 06:45
Re: Why is the skin doesnt delete? - by V1ceC1ty - 17.08.2009, 07:41
Re: Why is the skin doesnt delete? - by Abernethy - 17.08.2009, 07:55
Re: Why is the skin doesnt delete? - by nuriel8833 - 17.08.2009, 08:17
Re: Why is the skin doesnt delete? - by woot - 17.08.2009, 09:43
Re: Why is the skin doesnt delete? - by nuriel8833 - 17.08.2009, 09:57
Re: Why is the skin doesnt delete? - by nuriel8833 - 18.08.2009, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)