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
#2

Try to update yuor includes!
Reply
#3

can you tell me which includes i need
Reply
#4

try to download 0.3c Server for Windows or Linux
Reply
#5

i have just updated them 1 week ago !!!

any other advice ?
Reply
#6

Take sure and do it again for sure
Reply
#7

ok i will try
Reply
#8

it worked but still 1 error

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

You have another OnDialogResponse Callback... You have two...
Reply
#10

You already use OnDialogResponse somewhere in your script.

EDIT: Roach was faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)