24.04.2012, 01:43
Why do my enums not save properly
My enum comes out like this
Thank You
Please Help Me Please
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