Dialog ..
#2

The first thing that I see being wrong is the dialog IDs. In your command, ShowPlayerDialog displays a dialog with ID 3. However, the OnDialogResponse callback does not handle the dialog ID (handles ID 1 instead). So this has to be changed for it to initially work.

Also, why, in the end of the command, do you get the player's name? Also, I suggest using this:
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
So the array size corresponds to the current SA-MP version.
Reply


Messages In This Thread
Dialog .. - by kesem140599 - 17.08.2012, 09:41
Re: Dialog .. - by AndreT - 17.08.2012, 09:47
Re: Dialog .. - by kesem140599 - 17.08.2012, 10:13
Re: Dialog .. - by kesem140599 - 17.08.2012, 11:08
Re: Dialog .. - by kesem140599 - 17.08.2012, 11:39

Forum Jump:


Users browsing this thread: 5 Guest(s)