I can not figure out this warning
#6

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
You use:
[pawn]GetPlayerSkin(playerid);[pawn]

For save current skin.

Exemple:
pawn Код:
new MyVariable;
MyVariable = GetPlayerSkin(playerid);
printf("The SkinID is %i", MyVariable);
In Topic:
pawn Код:
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
Thank You


One more quick question how comes when i enter a skin id and do /adminduty how comes it dont make me the skin i put in


pawn Код:
enum pData
{
        AdminSkin
}

pawn Код:
CMD:setadminskin(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
    {
        new string[128], newskin[MAX_PLAYER_NAME];
        if(sscanf(params, "s", newskin)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setadminskin <skinid>");
        format(PlayerData[playerid][AdminSkin],MAX_PLAYER_NAME,"%d",newskin);
        format(string, sizeof(string), "You set your admin skin to %d", newskin);
        SendClientMessage(playerid, 0xFFFFFFF, string);
    }
    return 1;
}

pawn Код:
CMD:adminduty(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
        {
            SetPlayerSkin(playerid, PlayerData[playerid][AdminSkin]);
        }
}

Thank You


Please Help Me Please
Reply


Messages In This Thread
I can not figure out this warning - by Scripter12345 - 23.04.2012, 23:46
Re: I can not figure out this warning - by zSuYaNw - 23.04.2012, 23:52
Re: I can not figure out this warning - by Scripter12345 - 23.04.2012, 23:53
Re: I can not figure out this warning - by 2KY - 23.04.2012, 23:57
Re: I can not figure out this warning - by zSuYaNw - 24.04.2012, 00:03
Re: I can not figure out this warning - by Scripter12345 - 24.04.2012, 00:08
Re: I can not figure out this warning - by zSuYaNw - 24.04.2012, 00:34

Forum Jump:


Users browsing this thread: 1 Guest(s)