Need help with a dialog
#1

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 ?
Reply


Messages In This Thread
Need help with a dialog - by Shidony - 01.05.2012, 17:15
Re: Need help with a dialog - by Marricio - 01.05.2012, 17:17
Re : Need help with a dialog - by Shidony - 01.05.2012, 18:36
Re : Need help with a dialog - by Shidony - 02.05.2012, 08:00

Forum Jump:


Users browsing this thread: 1 Guest(s)