PDA

View Full Version : Y INI SAVES


69
01/12/2012, 05:00 PM
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

MaTriiX
01/12/2012, 06:24 PM
Show your OnPlayerDisconnect Y_ini code (Where it saves your user files).

69
01/12/2012, 07:40 PM
I got that already, I just need a loop or function that executes itself every 5 or 10 seconds.

69
01/12/2012, 09:05 PM
BUMPMAN BUMPS AGAIN!

Buzzbomb
01/12/2012, 09:11 PM
Create a timer.. SetTimer("SavePlayersAccounts" 5000,true); // Example
Put the timer Under OnGameModeInit..




Then Create New Function

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;
}

69
01/12/2012, 09:25 PM
Create a timer.. SetTimer("SavePlayersAccounts" 5000,true); // Example
Put the timer Under OnGameModeInit..




Then Create New Function

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?

Buzzbomb
01/12/2012, 09:31 PM
No it call it all the time I use it to check a Location it always repeats its self