Re: [TUT] How to create a dialog. (Includes responding) -
_Raven - 02.12.2009
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?
}
}
Re: [TUT] How to create a dialog. (Includes responding) -
PowerSurge - 21.12.2009
Don't add a reponse.
Re: [TUT] How to create a dialog. (Includes responding) -
Deat_Itself - 21.12.2009
good tutorial !
Re: [TUT] How to create a dialog. (Includes responding) -
xkniives - 29.01.2010
this doesn't work.
Re: [TUT] How to create a dialog. (Includes responding) -
Xx_OutLawZ_xX - 07.08.2010
Hello, I have one problem. When i have two dialogs in game, One only seems to work? Any suggestions?
Re: [TUT] How to create a dialog. (Includes responding) -
lightningcrow - 20.09.2010
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..
Re: [TUT] How to create a dialog. (Includes responding) -
Gavin - 16.11.2010
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.
Re: [TUT] How to create a dialog. (Includes responding) -
Gavin - 16.11.2010
Oh don't worry about the error i have fixed it, thanks.