[Tutorial] [TUT] How to create a dialog. (Includes responding)
#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


Messages In This Thread
[TUT] How to create a dialog. (Includes responding) - by PowerSurge - 28.10.2009, 13:26
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 13:42
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 28.10.2009, 13:52
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 13:58
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 28.10.2009, 13:58
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 14:14
Re: [TUT] How to create a dialog. (Includes responding) - by thuron - 28.10.2009, 14:30
Re: [TUT] How to create a dialog. (Includes responding) - by thuron - 28.10.2009, 14:32
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 28.10.2009, 14:38
Re: [TUT] How to create a dialog. (Includes responding) - by thuron - 28.10.2009, 14:44
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 15:03
Re: [TUT] How to create a dialog. (Includes responding) - by thuron - 28.10.2009, 15:10
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 15:14
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 28.10.2009, 15:25
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 28.10.2009, 15:28
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 29.10.2009, 12:08
Re: [TUT] How to create a dialog. (Includes responding) - by Daren_Jacobson - 30.10.2009, 00:16
Re: [TUT] How to create a dialog. (Includes responding) - by thimo - 07.11.2009, 12:21
Re: [TUT] How to create a dialog. (Includes responding) - by BP13 - 07.11.2009, 15:14
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 18.11.2009, 16:25
Re: [TUT] How to create a dialog. (Includes responding) - by _Raven - 02.12.2009, 11:53
Re: [TUT] How to create a dialog. (Includes responding) - by PowerSurge - 21.12.2009, 07:09
Re: [TUT] How to create a dialog. (Includes responding) - by Deat_Itself - 21.12.2009, 07:51
Re: [TUT] How to create a dialog. (Includes responding) - by xkniives - 29.01.2010, 04:20
Re: [TUT] How to create a dialog. (Includes responding) - by Xx_OutLawZ_xX - 07.08.2010, 00:11
Re: [TUT] How to create a dialog. (Includes responding) - by lightningcrow - 20.09.2010, 13:17
Re: [TUT] How to create a dialog. (Includes responding) - by Gavin - 16.11.2010, 05:58
Re: [TUT] How to create a dialog. (Includes responding) - by Gavin - 16.11.2010, 06:00

Forum Jump:


Users browsing this thread: 10 Guest(s)