HELP error 001:
#1

(417) : error 001: expected token: ")", but found "["


if(fexist(file)) {
new plrIP[64];
GetPlayerIp(playerid, plrIP, 64);
if (PlayerInfo[playerid][IP] == GetPlayerIp(playerid, plrIP, 64)) { <----- Line 417
PlayerInfo[playerid][RegisterDate] = dini_Int(file, "RegisterDate");
PlayerInfo[playerid][AdminLevel] = dini_Int(file, "AdminLevel");
PlayerInfo[playerid][VIPLevel] = dini_Int(file, "VIPLevel");
PlayerInfo[playerid][Cash] = dini_Int(file, "Money");
PlayerInfo[playerid][Score] = dini_Int(file, "Score");
PlayerInfo[playerid][Skin] = dini_Int(file, "Skin");
PlayerInfo[playerid][Kills] = dini_Int(file, "Kills");
PlayerInfo[playerid][Deaths] = dini_Int(file, "Deaths");
PlayerInfo[playerid][Cookies] = dini_Int(file, "Cookies");
PlayerInfo[playerid][pCar] = dini_Int(file, "pCar");
PlayerInfo[playerid][IP] = dini_Int(file, "IP");
PlayerInfo[playerid][Banned] = dini_Int(file, "Banned");
PlayerInfo[playerid][Seconds] = dini_Int(file, "Seconds");
PlayerInfo[playerid][Minutes] = dini_Int(file, "Minutes");
PlayerInfo[playerid][Hours] = dini_Int(file, "Hours");
Reply
#2

Doesn't work like that. IP addresses are stored as strings. Therefor you need to use strcmp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)