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



Help! - Ironboy500 - 08.12.2009

Hello all! I started with making my own first admin filterscript and I got problem with stats. Look at pastebin.They are saving but after I restart server or player logout they reset to 0 again. What should I put under onplayerdisconnect to fix it?
Thanks!

http://pastebin.com/m617aeadb


Re: Help! - patchkinson - 08.12.2009

you need to save the stats to a file

pawn Код:
#define player            "bla/players/%s.ini"
#define Settings      "bla/Settings/settings.ini"
#define Cmds      "bla/Settings/cmds.ini"
then under filterscript init
pawn Код:
if(!fexist(Settings))
under it you do the actions, like load the stats and things
the same for other things!


Re: Help! - Ironboy500 - 08.12.2009

More details please


Re: Help! - patchkinson - 08.12.2009

aerf..^^ im lazy :-/
there are some tutorials at wiki.sa-mp.com where i learned a lot, especially what i told you


Re: Help! - Ironboy500 - 08.12.2009

so no help