PLEASE HELP!
#1

pawn Код:
CreateDialog(id,dialogid,stil,const bH[], const b[],const bg[], const bg2[], const eh[],const e[], const eg[], const eg2[])
{
     if(LANGUAGE[id] == 1) // balcan
     {
        ShowPlayerDialog(id,dialogid,stil,bH,b,bg,bg2);
        return true;
     }
     else if(LANGUAGE[id] == 2) // english
     {
        ShowPlayerDialog(id,dialogid,stil,eh,e,eg,eg2);
        return true;
     }
     return true;
}
and when i make this fnc

pawn Код:
CreateDialog(playerid, 2, DIALOG_STYLE_LIST,"WELCOME","engleski\nbalkan","Accept","Cancle","", "","","");
i get these errors

Код:
error 035: argument type mismatch (argument 4)
error 035: argument type mismatch (argument 4)
error lines:

pawn Код:
ShowPlayerDialog(id,dialogid,stil,bH,b,bg,bg2);
and

pawn Код:
ShowPlayerDialog(id,dialogid,stil,bH,b,bg,bg2);
Please help me i can't find problem
Reply
#2

bump
Reply
#3

Try
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST,"WELCOME","engleski\nbalkan","Accept","Cancle");
Reply
#4

now i get warnings

Код:
C:\Users\EMPORIO ARMANI\Desktop\across balkan\gamemodes\Untitled.pwn(88) : warning 202: number of arguments does not match definition
C:\Users\EMPORIO ARMANI\Desktop\across balkan\gamemodes\Untitled.pwn(88) : warning 202: number of arguments does not match definition
C:\Users\EMPORIO ARMANI\Desktop\across balkan\gamemodes\Untitled.pwn(88) : warning 202: number of arguments does not match definition
C:\Users\EMPORIO ARMANI\Desktop\across balkan\gamemodes\Untitled.pwn(88) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#5

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "WELCOME", "engleski\nbalkan", "Accept", "Cancle");
I thought that would work, but never mind.
Reply
#6

I don't know how i can fix this :-/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)