11.06.2015, 12:56
Hello, I'm trying to replace my saving/loading system with y_ini. The saving part was pretty easy and works fine, but I am having a problem with loading information from an .ini file. Here's the code:
For some reason LoadUserData gets looped over 20 times, because that's how many "TEST" I get.
Код:
INI_ParseFile(File(playerid), "LoadUserData", .bExtra = true, .extra = playerid);
Код:
forward LoadUserData(playerid,name[],value[]); public LoadUserData(playerid,name[],value[]) { SendClientMessage(playerid,RED,"TEST"); INI_Int("Xp",playerInfo[playerid][experience]); INI_Int("Pocket",playerInfo[playerid][pocketmoney]); INI_Int("Bank",playerInfo[playerid][bankmoney]); return 1; }