enum problem..
#3

Quote:
Originally Posted by pds2012
Посмотреть сообщение
pawn Код:
enum pInfo
{
    pScore
}
new PlayerInfo[MAX_PLAYERS][pInfo];
make sure you have something like that.

It would really help us if you show us your code
Well, here how it looks for me:

pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
    pScore //line 80
}
new PlayerInfo[MAX_PLAYERS][pInfo];

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Int("Score", PlayerInfo[playerid][pScore]); //line 92
    return 1;
}


stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}
Reply


Messages In This Thread
enum problem.. - by CesarLT - 07.10.2013, 17:12
Re: enum problem.. - by Patrick - 07.10.2013, 17:16
Re: enum problem.. - by CesarLT - 07.10.2013, 17:26
Re: enum problem.. - by dusk - 07.10.2013, 17:29
Re: enum problem.. - by Patrick - 07.10.2013, 17:30
Re: enum problem.. - by CesarLT - 07.10.2013, 17:39

Forum Jump:


Users browsing this thread: 2 Guest(s)