open.mp forum
[Server] Problem with Foreach & INI - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
--- Thread: [Server] Problem with Foreach & INI (/showthread.php?tid=1224)



Problem with Foreach & INI - MrAsR - 2020-10-09

How to fix this is ?



Code:
F:\TLOD\pawno\include\foreach.inc(196) : error 017: undefined symbol "_FOREACH_CUR_VERSION"

F:\TLOD\gamemodes\project.pwn(855) : error 017: undefined symbol "INI_ParseFile"

F:\TLOD\gamemodes\project.pwn(855) : warning 215: expression has no effect

F:\TLOD\gamemodes\project.pwn(855) : error 029: invalid expression, assumed zero

F:\TLOD\gamemodes\project.pwn(855) : error 017: undefined symbol "extra"

F:\TLOD\gamemodes\project.pwn(855) : fatal error 107: too many error messages on one line



Line 855 - 864

Code:
? ? ? ? INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

? ? ? ? if(PlayerInfo[playerid][pBanned] == 1) return ShowBan(playerid);

? ? ? ? ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login",""COL_WHITE"Wellcome back "COL_RED"The Land Of Death\n"COL_WHITE"Please write password to login","Login","Quit");

? ? }

? ? else

? ? {

? ? ? ? ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"Wellcome to "COL_RED"The Land of Death\n"COL_WHITE"Please register before player.","Register","Quit");

? ? }

return 1;

}



RE: Problem with Foreach & INI - Worm - 2020-10-10

Check your foreach.inc file and see if you have " _FOREACH_CUR_VERSION " defined or not.

If not, then try updating your file.



Same thing goes for you Y_ini.inc file.

Check if you have "INI_ParseFile" defined or not.

If not, then update your file.