Need help with a dialog - 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: Need help with a dialog (
/showthread.php?tid=338938)
Need help with a dialog -
Shidony - 01.05.2012
Hi everybody !
I want to create a multi-character system in one account so i want to list all the characters linked with the account in a dialog.
I have this query:
pawn Код:
format(sql,sizeof(sql),"SELECT Name FROM characters WHERE Account='%s' LIMIT 1",PlayerName(playerid));
mysql_query(sql);
mysql_store_result();
mysql_fetch_row(row);
split(row,field,'|');
mysql_free_result();
format(string,sizeof(string),"%s\n",field[0]);
I have linked 2 character in my account but in the dialog, I have only one line.
Can Anyone help me ?
Re: Need help with a dialog -
Marricio - 01.05.2012
Try using strcat
Re : Need help with a dialog -
Shidony - 01.05.2012
It workd but now it shows me 2 times the same name.
Normally, it should show me:
Lorenzo_Turner
Shawn_Miller
But it show me:
Lorenzo_Turner
Lorenzo_Turner
Is there an error in my query ?
Re : Need help with a dialog -
Shidony - 02.05.2012
Up please