25.09.2014, 03:45
Error is on line 70.
here is my enum and whatnot. I hope I typed it write.
ok. i obviously didnt type it right, but yeah. If someone could give me some assistance, that would be appreciated. Thanks guys.
here is my enum and whatnot. I hope I typed it write.
Код:
//Player Stats enum pInfo { pPass, pCash, pAdmin, pMod, pVIP, pKills, pDeaths, pLevel, pHours, //What else under /stats? } new PlayersInfo[MAX_PLAYERS][pInfo]; // Adding varibles to .ini 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("Mod", PlayerInfo[playerid][pMod]; INI_Int("VIP", PlayerInfo[playerid][[pVIP]; INI_Int("Kills", PlayerInfo[playerid][pKills]; INI_Int("Deaths", PlayerInfo[playerid][pDeaths]; INI_Int("Level", PlayerInfo[playerid][pLevel]; INI_Int("Hours", PlayerInfo[playerid][pHours]; return 1; } //Name of .ini file stock UserPath(playerid) { new string[128], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string),PATH,playername); return string; } //Hasher stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; }