#1

'evening everyone

i would do a dialog that diplays sql results, so the results could be different in any case. How could i indicate what actions will be done while every items will be differents depending of players.

e.g

DIALOG_LIST
1
2
3
4
but after it could be
1
2
3

Cheers
Reply
#2

save results to array/table, and then manage this data in OnPlayerDialogResponse
Reply
#3

Thank you for your answer, could you detail, im not an expert with sql
Reply
#4

Create table:
Код:
new Results[MAX_PLAYERS][MAX_RECORDS];
Than, while creating dialog, save to this array for example UID's from results:
Код:
Results[playerid][record_number]=record_uid;
And than, in OnPlayerDialogResponse look for UID with that:
Код:
Results[playerid][listitem]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)