SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 31/10/2011, 01:30 PM   #1
Salsa
Huge Clucker
 
Salsa's Avatar
 
Join Date: Apr 2011
Location: Tokoyo, Japan
Posts: 449
Reputation: 13
Default HELP

Hello Guys Again:
I Need Help again Coz my Server Data Fully Deleted Now
Help me with Money and Saving :
Money and Saving Not saving on my Gm When player Leaves Money and score reset To 0 Any One Have Any Solution Plz Help

There is OnPlayerDisconnect text
http://pastebin.com/J0FKyb3f
__________________
Y_Less is is a program -.-
Hosted Tab For 13$ Per Month
Mapping For $ Pm Me If You Want Maps
Need Irc Registered Channel Pm Me I Can Make Irc Channel's On Request
Salsa is offline   Reply With Quote
Old 31/10/2011, 02:36 PM   #2
Salsa
Huge Clucker
 
Salsa's Avatar
 
Join Date: Apr 2011
Location: Tokoyo, Japan
Posts: 449
Reputation: 13
Default Re: HELP

Sorry For Double Post:

But I Really Need Help
__________________
Y_Less is is a program -.-
Hosted Tab For 13$ Per Month
Mapping For $ Pm Me If You Want Maps
Need Irc Registered Channel Pm Me I Can Make Irc Channel's On Request
Salsa is offline   Reply With Quote
Old 01/11/2011, 08:00 AM   #3
leong124
High-roller
 
leong124's Avatar
 
Join Date: Jun 2008
Location: Hong Kong, China
Posts: 1,738
Reputation: 134
Default Re: HELP

Have you saved these in your callback?
pawn Code:
savedInfo[savePos][0] = GetPlayerMoney(playerid);
savedInfo[savePos][1] = bank[playerid];
savedInfo[savePos][2] = bounty[playerid];
savedInfo[savePos][3] = 0;
Seems that I can't find any saving code for that. Also please make sure that PLAYERLIST_authed[playerid] is true when a player disconnects. You can do some printings to check if the value is correct.
Also, generally you may need to check if there's any run-time error before the saving code. The crashdetect plugin may be useful for you.
__________________
[KDT_MS]hk_shade

Sorry for my bad English and my weakness in expressing myself.
leong124 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



All times are GMT. The time now is 02:31 PM.


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