SA-MP Forums Archive
HELP error 001: - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP error 001: (/showthread.php?tid=440209)



HELP error 001: - YoungLoko - 28.05.2013

(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");


Re: HELP error 001: - Vince - 28.05.2013

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