їHow i can pass dini to Y_INI? - 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: їHow i can pass dini to Y_INI? (
/showthread.php?tid=379987)
їHow i can pass dini to Y_INI? -
jwalker - 23.09.2012
I need pass this to Y_INI:
PHP Code:
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "users/%s.ini", plname);
SendClientMessage(playerid, COLOR_YELLOW, "Loading");
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
}
return 1;
And this to Y_INI
PHP Code:
format(var, 64, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
Thanks.