SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/05/2019, 02:05 PM   #1
MacGyverr
Little Clucker
 
Join Date: Aug 2014
Posts: 30
Reputation: 3
Default Player got same weapons, money and rank. Help

Players on my server sometimes when they join got same weapons, money or even Admin rank. I don't know if it's about IDs messing up- I need help
MacGyverr is offline   Reply With Quote
Old 25/05/2019, 04:27 PM   #2
Plastikmensch
Big Clucker
 
Join Date: Aug 2016
Posts: 143
Reputation: 8
Default Re: Player got same weapons, money and rank. Help

Do you set every value to 0 at OnPlayerDisconnect?
Plastikmensch is offline   Reply With Quote
Old 25/05/2019, 04:37 PM   #3
MacGyverr
Little Clucker
 
Join Date: Aug 2014
Posts: 30
Reputation: 3
Default Re: Player got same weapons, money and rank. Help

Do you mean have i set "return to 0" ?
MacGyverr is offline   Reply With Quote
Old 25/05/2019, 04:53 PM   #4
Plastikmensch
Big Clucker
 
Join Date: Aug 2016
Posts: 143
Reputation: 8
Default Re: Player got same weapons, money and rank. Help

Nope, I just guessed that you use an array where you store the player information (weapons,score,money...).
If you do, you need to set the values to 0 after they are saved in a database or file when a player disconnects, because if you don't, what you describe happens.
Plastikmensch is offline   Reply With Quote
Old 25/05/2019, 05:41 PM   #5
MacGyverr
Little Clucker
 
Join Date: Aug 2014
Posts: 30
Reputation: 3
Default Re: Player got same weapons, money and rank. Help

I am saving players data with MYSQL, and it's set correctly. One guy said that my Database is too full? Idk if that makes sense. I see some changes in the phpMyAdmin, example when i choose "playersdata" i can't remove or edit players data like before
MacGyverr is offline   Reply With Quote
Old 26/05/2019, 07:09 PM   #6
MacGyverr
Little Clucker
 
Join Date: Aug 2014
Posts: 30
Reputation: 3
Default Re: Player got same weapons, money and rank. Help

Bumb
MacGyverr 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
I NEED HELP (Houses and weapons, money) notleoriginal Server Support 1 25/03/2014 04:28 PM
[Map] Weapons And Money Gang Hideout Omar55555 Maps 4 12/09/2013 07:50 PM
How Do You Show "RANK UP" everytime a player reaches the rank? markjaysonpinoy Scripting Help 7 15/08/2012 01:19 PM
Script with only SS money & weapons FreedomtoLive Scripting Help 1 10/12/2011 12:18 AM
Saving Position and Money and Weapons for GF Despare Help Archive 1 04/09/2009 11:00 PM


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


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