SA-MP Forums Archive
SaveAccounts - 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)
+--- Thread: SaveAccounts (/showthread.php?tid=417819)



SaveAccounts - Vizi - 22.02.2013

Hey how can i make this SaveAccounts for every seccond ? Becuse i have money bug and i want when i give money /givemoney to be saved.

PHP код:
accountstimer SetTimer("SaveAccounts"600001); //10 mins every account saved 



Re: SaveAccounts - Calabresi - 22.02.2013

Change 60000 to 1000.


Re: SaveAccounts - MP2 - 22.02.2013

You want to save ALL players' account data EVERY SECOND? That's ridiculous! You should save every minute at the most. Just update their account data for cash when you give them cash.


Re: SaveAccounts - Vizi - 26.02.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
You want to save ALL players' account data EVERY SECOND? That's ridiculous! You should save every minute at the most. Just update their account data for cash when you give them cash.
how can i do that?


Re: SaveAccounts - Vizi - 27.02.2013

bump


Re: SaveAccounts - Monzy - 28.02.2013

Quote:
Originally Posted by Vizi
Посмотреть сообщение
Hey how can i make this SaveAccounts for every seccond ? Becuse i have money bug and i want when i give money /givemoney to be saved.
PHP код:
accountstimer SetTimer("SaveAccounts"6000060); //10 mins every account saved 



Re: SaveAccounts - Denying - 28.02.2013

Do you have a command such as /givemoney? or something? Just.. make it add the given amount to the player's money on the file.

If you are using dini include it would be something like this:
dini_IntSet("Denying.ini", "Cash", "Cash+new amount");