Posts: 366
Threads: 34
Joined: May 2014
Reputation:
0
Hello there.I've seen Multi Character system in many servers,..you can Create and Switch characters In Game.I can script and all that stuff,but the only thing I don't know is 'How to set & save Player's Info'.
Like,
PlayerInfo[playerid2]?? Seems strange
PlayerInfo2[playerid] Even Strange
Ed Cetera
Can anyone explain that to me below?
Thanks!
Posts: 1,923
Threads: 46
Joined: Aug 2012
Reputation:
0
PlayerInfo2[playerid][etc] seems good, but you should use tags in your ini files to separe the first character from the second one(2 characters in 1 file).
Posts: 366
Threads: 34
Joined: May 2014
Reputation:
0
Can you give me an Example please? Example for like Faction ID for Player 1 and 2.
Thanks
Posts: 366
Threads: 34
Joined: May 2014
Reputation:
0
I know what enums are,what I basically want is,that 'How to save Multi character Info'.Creation of Characters In Game,and all that stuff.
Posts: 6,129
Threads: 36
Joined: Jan 2009
It's quite a simple thing to make - the way these systems typically work is by having a master account and character accounts.
If you're using some sort of SQL solution: Master accounts require a username and password and a primary key ID, then your character accounts can be linked by using the ID of the master account.
I believe it has been demonstrated in this script here:
https://sampforum.blast.hk/showthread.php?tid=291035
Posts: 78
Threads: 0
Joined: May 2014
Quote:
Originally Posted by Calgon
If you're using some sort of SQL solution: Master accounts require a username and password and a primary key ID, then your character accounts can be linked by using the ID of the master account.
|
Exactly this.
Posts: 366
Threads: 34
Joined: May 2014
Reputation:
0
Hm...useful,I'll try this.