[HELP] NPC OnPlayerClickPlayer
#5

You probably declare a variable in OnDialogResponse for dialogid 23 and its default value is 0. Store it to a variable:
pawn Код:
// global:
new Player_Clicked[MAX_PLAYERS];

// OnPlayerConnect:
Player_Clicked[playerid] = INVALID_PLAYER_ID;

// OnPlayerClickPlayer:
Player_Clicked[playerid] = clickedplayerid;
In OnDialogResponse, use Player_Clicked[playerid] (it will store the clicked player's ID) and reset it to INVALID_PLAYER_ID after done what you want with the list items from the dialog.
Reply


Messages In This Thread
[HELP] NPC OnPlayerClickPlayer - by Bokyyy - 17.06.2014, 16:51
Re: [HELP] NPC OnPlayerClickPlayer - by Pboachie - 17.06.2014, 17:04
Re: [HELP] NPC OnPlayerClickPlayer - by Bokyyy - 17.06.2014, 17:08
Re: [HELP] NPC OnPlayerClickPlayer - by Pboachie - 17.06.2014, 17:13
Re: [HELP] NPC OnPlayerClickPlayer - by Konstantinos - 17.06.2014, 17:17
Re: [HELP] NPC OnPlayerClickPlayer - by Bokyyy - 17.06.2014, 17:32

Forum Jump:


Users browsing this thread: 2 Guest(s)