[Tutorial] [TUT] How to create a dialog. (Includes responding)
#21

How i can create the dialog without response, just the msgbox??

There how i try to do it:

OnPlayerConnect:

Code:
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"WaRserver","Welcome to WaRserver"," "," ");
Some1 in script:

Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 2)
{
// huh?
}
}
Reply
#22

Don't add a reponse.
Reply
#23

good tutorial !
Reply
#24

this doesn't work.
Reply
#25

Hello, I have one problem. When i have two dialogs in game, One only seems to work? Any suggestions?
Reply
#26

hei.. i'am so confused in here..
please help me..

i was create a dialog box..
Code:
[308]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
[309]if(dialogid == 2) { //Our Dialog ID.
[310]        if(response) {
[311]            new message1[256+1];
[312]            if(listitem == 0) { // List item -1
[313]                format(message1, 256, "You selected 'Desert Eagle'", listitem);
[314]            SendClientMessage(playerid, 0xFFFFFFFF, message1);
[315]            GivePlayerWeapon (playerid, 24, 500); // The output of the selection
[316]            } else if(listitem == 1) {
[317]                format(message1, 256, "You selected 'Silenced Pistol'", listitem);
[318]            SendClientMessage(playerid, 0xFFFFFFFF, message1);
[319]            GivePlayerWeapon (playerid, 23, 500);
[320]}
why this error show up?
Code:
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(309) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(310) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(312) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(316) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(369) : warning 203: symbol is never used: "cmdtext"
C:\Program Files\Rockstar Games\Mode GTA\Project\gamemodes\grandlarc.pwn(487) : warning 203: symbol is never used: "cmdtext"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
how to fix it? and how to make a dialog box perfect? Thank's..
Reply
#27

i get an error
Code:
C:\Documents and Settings\Gavin Donaldson\Desktop\sa-mp server 0.3b\gamemodes\Gavin2.pwn(79) : error 017: undefined symbol "ShowPlayerDialog"
please help, dunno why it is saying this.
Reply
#28

Oh don't worry about the error i have fixed it, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)