17.08.2012, 09:47
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:
So the array size corresponds to the current SA-MP version.
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));