#1

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
Reply
#2

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!
Reply
#3

More details please
Reply
#4

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

so no help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)