enum pInfo
#4

Well i used level because didn't noticed you had 'Admin'. Also, you are misinterpreting the usage of enums and variables.

Let's start:
pawn Code:
enum pInfo
{
    Admin
}
new PlayerData[MAX_PLAYERS][pInfo]; // Remember that this variable MUST be below the enum!
To save:
pawn Code:
dini_IntSet(file, "Admin", PlayerData[playerid][Admin]);
To load:
pawn Code:
PlayerData[playerid][Admin] = dini_Int(file, "Admin");
Also remember to clear the variables on player connect:
pawn Code:
public OnPlayerConnect(playerid)
{
    PlayerData[playerid][Admin] = 0;
    return 1;
}
Reply


Messages In This Thread
enum pInfo - by cruising - 05.04.2011, 22:10
Re: enum pInfo - by [L3th4l] - 05.04.2011, 22:13
Re: enum pInfo - by cruising - 05.04.2011, 22:40
Re: enum pInfo - by [L3th4l] - 05.04.2011, 22:54
Re: enum pInfo - by cruising - 05.04.2011, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)