25.05.2012, 14:01
(
Последний раз редактировалось wmt; 25.05.2012 в 14:51.
)
I am sorry to disturb you, but I need to ask you a question. I'd like to describe my problem at first. I have I saving system that saves money, score (etc...) in a .ini file. For the player with name A the file is A.ini and for the player with name B the file is B.ini. I want my system to load the data from .ini files. I've made some code, but it doesn't work. Here it is:
What's wrong with it?! Could you explain me?
P.S.: Here's the full source code of my gamemode (link).
P.P.S.: The data is saved in /scriptfiles/save
Код:
new Float:money; GetPlayerName(playerid,PlayerName,32); format(string,64,”%s.ini”,PlayerName); new inifile = ini_openFile(/save/playername.ini); ini_getInteger(iniFile, "Money", money); ini_closeFile(iniFile); GivePlayerMoney(playerid,money);
P.S.: Here's the full source code of my gamemode (link).
P.P.S.: The data is saved in /scriptfiles/save