SA-MP Forums Archive
Master account to load overs? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Master account to load overs? (/showthread.php?tid=630309)



Master account to load overs? - TheLeech - 12.03.2017

I'm making a master account system where players can use their forum name in game to log in, From here they will get a menu to select one of there 5 characters, How would I do this using MySQL? I had done it before in Dini but with a really complex method I want it to be Less Complex, I want players character names to appear in a dialog.

Would it be somewhere along the lines of this?
PHP Code:

for(new 1MAX_CHARACTERSPERPLAYER;i++)
{
mysql_format(mysqlquerysizeof(query),"SELECT `CharacterName`, `ID` FROM `characters` WHERE `MasterName` = '%e' LIMIT 1"PlayerInfo[playerid][Name]);
mysql_tquery(mysqlquery"OnCharacterLoad""i"playerid);




Re: Master account to load overs? - coool - 13.03.2017

Would it be somewhere along the lines of this?
PHP Code:

for(new 1MAX_CHARACTERSPERPLAYER;i++)
{
mysql_format(mysqlquerysizeof(query),"SELECT `CharacterName`, `ID` FROM `characters` WHERE `MasterName` = '%e' LIMIT 1"PlayerInfo[playerid][Name]);
mysql_tquery(mysqlquery"OnCharacterLoad""i"playerid);

[/QUOTE]

Not between this but in the public OnCharacterLoad.