SA-MP Forums Archive
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: y_ini (/showthread.php?tid=317917)



y_ini - ZmaXy - 13.02.2012

I want to switch from dini in yini

Can you just switch this one, so I'll see how and do the rest

OnPlayerRegister
pawn Код:
format(var, 64,"Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
OnPlayerUpdate
pawn Код:
format(var, 64,"Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
OnPlayerLogin
pawn Код:
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }