dialog error
#1

i have made this command so far and having errors in it help me to solve them

command >>>

Код:
 if (strcmp("/nv", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,1338,DIALOG_STYLE_MSGBOX,"[SHOP]","[DO YOU WANT TO BUY NIGHT ******S ??/n THIS WILL COST YOU 5000]""Yes","Quit");
        return 1;
    }
and this >>

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1338) {
        if(response) {
          SendClientMessage(playerid, 0x24FF0AB9, "You Have Spawned Night Vision ******s!");
          GivePlayerWeapon(playerid,45,1);

        } else {
          SendClientMessage(playerid, 0xAA3333AA, "Selection Cancelled!");
          }
        return 1;
    }
return 0;
}
errors >>>>


Код:
C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(287) : error 021: symbol already defined: "OnDialogResponse"

C:\Documents and Settings\prince\Desktop\server\gamemodes\mygame.pwn(158) : error 017: undefined symbol "ShowPlayerDialog"
Reply


Messages In This Thread
dialog error - by jiwan - 21.10.2011, 15:30
Re: dialog error - by SpiderWalk - 21.10.2011, 15:31
Re: dialog error - by jiwan - 21.10.2011, 15:32
Re: dialog error - by SpiderWalk - 21.10.2011, 15:33
Re: dialog error - by jiwan - 21.10.2011, 15:35
Re: dialog error - by SpiderWalk - 21.10.2011, 15:36
Re: dialog error - by jiwan - 21.10.2011, 15:37
Re: dialog error - by jiwan - 21.10.2011, 15:43
Re: dialog error - by aRoach - 21.10.2011, 15:50
Re: dialog error - by IstuntmanI - 21.10.2011, 15:52

Forum Jump:


Users browsing this thread: 3 Guest(s)