SA-MP Forums Archive
[Y_INI]Can I Use... - 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: [Y_INI]Can I Use... (/showthread.php?tid=583292)



[Y_INI]Can I Use... - TheRaGeLord - 27.07.2015

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



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;

If No, then what difference does that %s makes?