Making a /map
#3

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:
pawn Код:
#define DIALOG_MAP_SHOW 12516
Step 2: Show it
pawn Код:
ShowPlayerDialog(playerid, DIALOG_MAP_SHOW, DIALOG_TYPE, .....);
Step 3: Get it's response and work with it.
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;
}
Easy, eh?
Reply


Messages In This Thread
Making a /map - by wgdm - 04.05.2013, 14:35
Re: Making a /map - by MattyG - 04.05.2013, 14:38
Re: Making a /map - by RajatPawar - 04.05.2013, 14:41
Re: Making a /map - by wgdm - 04.05.2013, 14:47
Re: Making a /map - by wgdm - 04.05.2013, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)