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



File saving - Abernethy - 11.08.2009

Hey guys.
I've been working on this filterscript for donators & if I reset the server or relog everything loads fine.
When I close my samp-server application then open it & connect. The "Donation Level:[%d]" isn't loading.
(I made /donate as a stock command just to test if /minigun was working.)
http://adepto.pastebin.com/m29df0fa0


Re: File saving - Abernethy - 11.08.2009

* Abernethy sneezes.
Oh. Excuse me.


Re: File saving - coole210 - 11.08.2009

Yeah, Seif's reg and log tutorial doesn't work. I've tested it, use the "using dudb to save money/stats/whatever" tut. It works well..

No need to use playerinfo but if you want...

pawn Код:
stock GivePlayerLevel(playerid, level)
{
    PlayerInfo[playerid][pLevel] = PlayerInfo[playerid][pLevel] + level;
    return PlayerInfo[playerid][pWanted];
}

stock GetPlayerLevel(playerid)
{
    return PlayerInfo[playerid][pLevel];
}
Most credits to maker of PCash, the rest is me.


Re: File saving - Abernethy - 11.08.2009

If I add that, will it work alright pal?


Re: File saving - coole210 - 11.08.2009

Yeah i use that to save wanted players and muted players.


Re: File saving - Abernethy - 11.08.2009

Ok, this isn't working.
Know any other ways of making a it?


Re: File saving - Woet - 11.08.2009

'You can bump topics when the last reply is at least 12 hours old.