SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 10/07/2012, 08:56 AM   #21
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: [REL]tfile 3.0 Best file system!

Big update of optimality and improvement of several errors
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 16/07/2012, 04:00 PM   #22
NeyMar96
Big Clucker
 
Join Date: Jul 2011
Posts: 119
Reputation: -1
Default Re: [REL]tfile 3.0 Best file system!

If the server shutdown it not save the data
NeyMar96 is offline   Reply With Quote
Old 16/07/2012, 05:06 PM   #23
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: [REL]tfile 3.0 Best file system!

Quote:
Originally Posted by NeyMar96 View Post
If the server shutdown it not save the data
Fixed

If still not saves, it not my fault that sa:mp is closing faster than function can end operation
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 16/07/2012, 05:17 PM   #24
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: [REL]tfile 3.0 Best file system!

Quote:
Originally Posted by Terminator3 View Post
Fixed

If still not saves, it not my fault that sa:mp is closing faster than function can end operation
Just set a timer.
__________________
TheArcher is offline   Reply With Quote
Old 16/07/2012, 05:24 PM   #25
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: [REL]tfile 3.0 Best file system!

Quote:
Originally Posted by TheArcher View Post
Just set a timer.
I don't understand what you mean?
timer for update the file data? then do not say it to me :P

but to me sa:mp should turn off after completing all the functions in OnGameModeExit
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 16/07/2012, 05:49 PM   #26
NeyMar96
Big Clucker
 
Join Date: Jul 2011
Posts: 119
Reputation: -1
Default Re: [REL]tfile 3.0 Best file system!

You know why it not save?

PHP Code:
public OnGameModeExit()
{
foreach(
PlayeriSaveInfo(i);
return 
1;
}

stock SaveInfo(playerid)
{
if(!
PlayerInfo[playerid][Logged] && fKeyExist(UserFile(playerid), "Password"))
{
fSaveData(UserFile(playerid),"Level<d>Kills<d>AdminLevel<d>"PlayerInfo[playerid][Level], PlayerInfo[playerid][Kills],PlayerInfo[playerid][AdminLvl]);
}
return 
1;

NeyMar96 is offline   Reply With Quote
Old 16/07/2012, 06:04 PM   #27
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: [REL]tfile 3.0 Best file system!

Quote:
Originally Posted by Terminator3 View Post
I don't understand what you mean?
timer for update the file data? then do not say it to me :P

but to me sa:mp should turn off after completing all the functions in OnGameModeExit
I mean setting a timer to save the files before the server closes.
__________________
TheArcher is offline   Reply With Quote
Old 16/07/2012, 07:11 PM   #28
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: [REL]tfile 3.0 Best file system!

Code:
fKeyExist(UserFile(playerid), "Password"))
why do you check that?

better not use fuction (stock), paste the code to callback and try to not use UserFile(playerid) twice

Quote:
Originally Posted by TheArcher View Post
I mean setting a timer to save the files before the server closes.
The server can be turned off in different ways
What, if hosting turns it off or someone type the command 'rcon exit'
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Old 16/07/2012, 07:26 PM   #29
NeyMar96
Big Clucker
 
Join Date: Jul 2011
Posts: 119
Reputation: -1
Default Re: [REL]tfile 3.0 Best file system!

To check if have file.

And it still not save..
NeyMar96 is offline   Reply With Quote
Old 16/07/2012, 08:54 PM   #30
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: [REL]tfile 3.0 Best file system!

Quote:
Originally Posted by NeyMar96 View Post
To check if have file.
fexist was deleted ? I have not heard
__________________
sorry for my bad English
Terminator3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File system? ElChapoGuzman Help Archive 7 18/03/2011 06:21 AM
File system Steve M. Help Archive 6 11/01/2011 11:22 AM
[FilterScript] [FS] File Cars - Vehicle File Storing System! lavamike Filterscripts 11 27/08/2010 11:02 PM
File System ScottCFR Help Archive 3 03/04/2010 04:36 PM


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.