Array out of bounds; Referencing enum problem?
#1

pawn Код:
enum pStats{
    Money,
    Level,
    Admin,
    Password[128],
}
new PlayerStats[MAX_PLAYERS][pStats],Car[MAX_PLAYERS];
pawn Код:
forward LoadAccount(playerid);
public LoadAccount(playerid)
{
    new Player[MAX_PLAYER_NAME],File[128];
    GetPlayerName(playerid, Player, sizeof(Player) );
    format(File,sizeof(File),"\\Accounts\\%s.ini", Player);

    PlayerStats[playerid][Password] = dini_Get(File,"Password");
    return 1;

}
Код:
../NGZ/Functions.pwn(143) : error 047: array sizes do not match, or destination array is too small
It's hashed, but it's hashed as a string, i.e = including letters and symbols, I might just use whirlpool and an int.
Reply


Messages In This Thread
Array out of bounds; Referencing enum problem? - by Hoborific - 13.05.2013, 02:56
Re : Array out of bounds; Referencing enum problem? - by DaTa[X] - 13.05.2013, 03:02
Re: Array out of bounds; Referencing enum problem? - by Pottus - 13.05.2013, 03:04
Re: Array out of bounds; Referencing enum problem? - by Hoborific - 13.05.2013, 03:06
Re: Array out of bounds; Referencing enum problem? - by [HiC]TheKiller - 13.05.2013, 05:33
Re: Array out of bounds; Referencing enum problem? - by Hoborific - 13.05.2013, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)