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..