SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 18/03/2009, 06:12 AM   #1
CJ101
High-roller
 
CJ101's Avatar
 
Join Date: Jan 2008
Location: RevolutionX
Posts: 1,758
Reputation: 162
Default accounts do not load after closing samp-server.exe

http://pastebin.com/f62509415

If the server crashes, or i close samp-server, the next time someone goes in, their data is not loaded.
help?
__________________
I have left SA-MP. Thanks for a great ten years.
CJ101 is offline  
Old 18/03/2009, 08:13 AM   #2
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: accounts do not load after closing samp-server.exe

if (account)

try changing that to

if (!account)
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 18/03/2009, 08:58 AM   #3
MenaceX^
High-roller
 
Join Date: Aug 2008
Posts: 3,262
Reputation: 13
Default Re: accounts do not load after closing samp-server.exe

Load them in OnGameModeExit.
MenaceX^ is offline  
Old 18/03/2009, 09:40 AM   #4
CJ101
High-roller
 
CJ101's Avatar
 
Join Date: Jan 2008
Location: RevolutionX
Posts: 1,758
Reputation: 162
Default Re: accounts do not load after closing samp-server.exe

Quote:
Originally Posted by MenaceX^
Load them in OnGameModeExit.
[quote=MenaceX^ ]

u mead Enter? it wouldnt work on exit..
__________________
I have left SA-MP. Thanks for a great ten years.
CJ101 is offline  
Old 18/03/2009, 09:48 AM   #5
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: accounts do not load after closing samp-server.exe

No on exit...
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 18/03/2009, 09:49 AM   #6
MenaceX^
High-roller
 
Join Date: Aug 2008
Posts: 3,262
Reputation: 13
Default Re: accounts do not load after closing samp-server.exe

Why are you quoting me while I didn't say it? Use regular reply instead of double quoting me.

It should work in OnGameModeExit.
Show me your OnGameModeExit public.
MenaceX^ is offline  
Old 18/03/2009, 09:55 AM   #7
notec100
Big Clucker
 
Join Date: Nov 2008
Posts: 180
Reputation: 0
Default Re: accounts do not load after closing samp-server.exe

OnGameModeExit is correct I had issues with a few stats not saving due to server crashes etc, and once I added the info to OnGameModeExit it has been fine ever since. So yes it does work on OnGameModeExit.
notec100 is offline  
Old 18/03/2009, 10:07 AM   #8
MenaceX^
High-roller
 
Join Date: Aug 2008
Posts: 3,262
Reputation: 13
Default Re: accounts do not load after closing samp-server.exe

I know it does work when using OnGameModeExit, I don't understand why he says it doesn't.
MenaceX^ is offline  
Old 19/03/2009, 12:19 AM   #9
CJ101
High-roller
 
CJ101's Avatar
 
Join Date: Jan 2008
Location: RevolutionX
Posts: 1,758
Reputation: 162
Default Re: accounts do not load after closing samp-server.exe

fixed, have same problem


http://pastebin.com/m7240b3fb
__________________
I have left SA-MP. Thanks for a great ten years.
CJ101 is offline  
 

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
My samp 0.3 doesnt load any server in list :S redigaffi Client Support 0 23/04/2010 12:29 PM
Server Closing :S TheNotorius Server Support 1 22/11/2009 06:00 AM
[MySQL] samp-server closing bskillerbr Help Archive 3 01/11/2009 10:58 AM
How To Fix Your SAMP if it wont load when you click on any server. LiamX90 Client Support 0 11/10/2009 12:16 PM
GM closing compiling Samp-server bskillerbr Help Archive 5 07/02/2009 02:54 PM


All times are GMT. The time now is 11:48 AM.


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