03.12.2016, 20:54
Hello. I was wondering if it's possible to select a specific row(?)
Say I have a dialog(list) with the top players and want to select a row based on OnDialogResponse with listitem?
Example:
And another issue, the query below doesnt give me any results, any ideas as to why?
Thanks in advance!
Say I have a dialog(list) with the top players and want to select a row based on OnDialogResponse with listitem?
Example:
PHP код:
if(dialogid == DIALOG_TOP)
{
if(response) {
format(Query,sizeof(Query), "SELECT * FROM `USERS` ORDER BY `KILLS` DESC LIMIT 25");
Result = db_query(Database, Query);
if(db_num_rows(Result))
{
db_select_row(listitem) // function im looking for..? :d
db_get_field_assoc(Result, "OwnerName", string, 48);
}
}
PHP код:
format(Query,sizeof(Query), "SELECT * FROM `VEHDATA` WHERE `OwnerID` = %i ORDER BY `VehID` DESC LIMIT 15", PlayerInfo[playerid][UserID]);