Y INI SAVES - 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: Y INI SAVES (
/showthread.php?tid=396652)
Y INI SAVES -
69 - 01.12.2012
I would like for my Y_INI file to save every 5 seconds. Anyone help please?
I know how to make it save, I'd just like you to write something like this:
For example:
This under OnPlayer....
This under OnPlayer....
This keep it outside everything
// and here you put your save.
thanks
Re: Y INI SAVES -
MaTriiX - 01.12.2012
Show your OnPlayerDisconnect Y_ini code (Where it saves your user files).
Re : Y INI SAVES -
69 - 01.12.2012
I got that already, I just need a loop or function that executes itself every 5 or 10 seconds.
Re : Y INI SAVES -
69 - 01.12.2012
BUMPMAN BUMPS AGAIN!
Re: Y INI SAVES -
Buzzbomb - 01.12.2012
Create a timer.. SetTimer("SavePlayersAccounts" 5000,true); // Example
Put the timer Under OnGameModeInit..
Then Create New Function
pawn Код:
Forward SavePlayersAccounts(playerid); //
public SavePlayersAccounts(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
// Put ur User Files Here Settings Ini's Etc
}
return 1;
}
Re : Re: Y INI SAVES -
69 - 01.12.2012
Quote:
Originally Posted by Buzzbomb
Create a timer.. SetTimer("SavePlayersAccounts" 5000,true); // Example
Put the timer Under OnGameModeInit..
Then Create New Function
pawn Код:
Forward SavePlayersAccounts(playerid); // public SavePlayersAccounts(playerid) {
for(new i = 0; i < MAX_PLAYERS; i++) { // Put ur User Files Here Settings Ini's Etc } return 1; }
|
I believe that only works 30 seconds after the game mode is entered and then stops?
Re: Y INI SAVES -
Buzzbomb - 01.12.2012
No it call it all the time I use it to check a Location it always repeats its self