Why do my enums not save properly
#1

Why do my enums not save properly


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

My enum comes out like this

pawn Код:
AdminSkin = 0

Thank You


Please Help Me Please
Reply


Messages In This Thread
Why do my enums not save properly - by Scripter12345 - 24.04.2012, 01:43
Re: Why do my enums not save properly - by iRage - 24.04.2012, 01:52
Re: Why do my enums not save properly - by Scripter12345 - 24.04.2012, 02:03
Re: Why do my enums not save properly - by iRage - 24.04.2012, 02:08
Re: Why do my enums not save properly - by Scripter12345 - 24.04.2012, 02:15
Re: Why do my enums not save properly - by [ABK]Antonio - 24.04.2012, 02:21
Re: Why do my enums not save properly - by Scripter12345 - 24.04.2012, 02:24
Re: Why do my enums not save properly - by iRage - 24.04.2012, 02:28
Re: Why do my enums not save properly - by Scripter12345 - 24.04.2012, 02:29
Re: Why do my enums not save properly - by iRage - 24.04.2012, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)