Posts: 84
Threads: 21
Joined: Mar 2015
Hello, I need some help so I'm using DOF2 saving system and I would like to do like whenever a player is registered and spawned the count get +1 for example the count is
and a player is registered and spawned so it becomes
and the PlayerInfo[playerid][UniqueID] = the count..
I wish you help me
Posts: 9
Threads: 0
Joined: Jan 2017
1- Load PlayerInfo[playerid][UniqueID]
2 - PlayerInfo[playerid][UniqueID]++;
3 - save it
Posts: 84
Threads: 21
Joined: Mar 2015
Quote:
Originally Posted by TATIK
1- Load PlayerInfo[playerid][UniqueID]
2 - PlayerInfo[playerid][UniqueID]++;
3 - save it
|
Nope actually the PlayerInfo[playerid][UniqueID] is depend on the ID count ! and my bug is that all the players share the same uniqueID that's why I want to make a count.
Posts: 1,794
Threads: 104
Joined: Feb 2012
Reputation:
0
Your idea should work fine. You create a file where you increase the number per each register in game and based on that you gain the ID, but on the other hand have you at least tried to code something or do you expect us to write it all for you?
Posts: 84
Threads: 21
Joined: Mar 2015
Quote:
Originally Posted by DaniceMcHarley
Your idea should work fine. You create a file where you increase the number per each register in game and based on that you gain the ID, but on the other hand have you at least tried to code something or do you expect us to write it all for you?
|
To be honest ! If I have the solution I wouldn't come here but I kept thinking about a solution and I didn't find any. However, I'm trying a code right now so yeah I'm asking for help..
Posts: 84
Threads: 21
Joined: Mar 2015
EDIT: I found a solution thanks for you all !!