Y INI SAVES
#1

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

Show your OnPlayerDisconnect Y_ini code (Where it saves your user files).
Reply
#3

I got that already, I just need a loop or function that executes itself every 5 or 10 seconds.
Reply
#4

BUMPMAN BUMPS AGAIN!
Reply
#5

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;
}
Reply
#6

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

No it call it all the time I use it to check a Location it always repeats its self
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)