SA-MP Forums Archive
Saving Mods - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Saving Mods (/showthread.php?tid=278831)



Saving Mods - -CaRRoT - 24.08.2011

Well , I Got a Dealer Ship i made.. it's working fine - But i want to make that mods save on /parkcar and player relog...disconnect..gmx... all these things - So how will i do it ? will i put it here ?

pawn Code:
format(var, 32, "Blindfolds=%d\n",PlayerInfo[playerid][pBlindfolds]);fwrite(hFile, var);
                format(var, 32, "Speedo=%d\n",gSpeedo[playerid]);fwrite(hFile, var);
                format(var, 32, "Seeds=%d\n",PlayerInfo[playerid][pSeeds]);fwrite(hFile, var);
                format(var, 32, "vModel=%d\n",PlayerInfo[playerid][vModel]);fwrite(hFile, var);
                format(var, 32, "vBuyPrice=%d\n",PlayerInfo[playerid][vBuyPrice]);fwrite(hFile, var);
                format(var, 32, "vCol1=%d\n",PlayerInfo[playerid][vCol1]);fwrite(hFile, var);
                format(var, 32, "vCol2=%d\n",PlayerInfo[playerid][vCol2]);fwrite(hFile, var);
                format(var, 32, "vLocked=%d\n",PlayerInfo[playerid][vLocked]);fwrite(hFile, var);
                format(var, 32, "vCarX=%.1f\n",PlayerInfo[playerid][vCarX]);fwrite(hFile, var);
                format(var, 32, "vCarY=%.1f\n",PlayerInfo[playerid][vCarY]);fwrite(hFile, var);
                format(var, 32, "vCarZ=%.1f\n",PlayerInfo[playerid][vCarZ]);fwrite(hFile, var);
                format(var, 32, "vCarA=%.1f\n",PlayerInfo[playerid][vCarA]);fwrite(hFile, var);
I Mean , do i put it in one like those that it save mods ? that's onplayerregiter..onplayersave..and onplayerlogin