27.07.2015, 11:50
Hey! Well, i want to ask that Can I use "INI_ParseFile(file, "LoadUser_data", .bExtra = true, .extra = playerid);"
Instead of using something like this "INI_ParseFile(file, "LoadUser_%s", .bExtra = true, .extra = playerid);"
If No, then what difference does that %s makes?
Instead of using something like this "INI_ParseFile(file, "LoadUser_%s", .bExtra = true, .extra = playerid);"
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
return 1;
}