Saving System Help (Hadmin) - 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 System Help (Hadmin) (
/showthread.php?tid=253687)
Saving System Help (Hadmin) -
fiki574 - 07.05.2011
Hi! So, I have this problem with Hamptonin administration filterscript savings! This is what happens:
1. I want to restart server cause I added new maps!
2. For example, 5 players are on my server!
3. They all have 10+ score and around 50k money!
4. I restart server!
5. Players reconnect!
6. They login, but score and money are now 0!
Q: What I want?
A: I would like to know how can players "save" there money and score without leaving server and rejoining when I restart it!
Can someone help me pls? Any help would be appriciated!
Re: Saving System Help (Hadmin) -
Elka_Blazer - 07.05.2011
I dont know this system but ...
I guess you will need to use loop when you restart
something like
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
dini_IntSet(file,"Level",GetPlayerScore(i));
}
of course the variables are not the same , I just used the variables on my server ....