04.05.2013, 14:41
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
Basically, all you need to do is:
Step 1: Define the ID of the dialog you are creating. It's used to distinguish between responses to different dialogs. For now, say you do:
Step 2: Show it
Step 3: Get it's response and work with it.
Easy, eh?
Basically, all you need to do is:
Step 1: Define the ID of the dialog you are creating. It's used to distinguish between responses to different dialogs. For now, say you do:
pawn Код:
#define DIALOG_MAP_SHOW 12516
pawn Код:
ShowPlayerDialog(playerid, DIALOG_MAP_SHOW, DIALOG_TYPE, .....);
pawn Код:
public OnDialogResponse( .. ) {
if(dialogid == DIALOG_MAP_SHOW)
{
// Do all that stuff with "inputtext" because that is what the user INPUT in the dialog
// Like setting checkpoints
}
return 1;
}