SA-MP Forums Archive
PLEASE HELP! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PLEASE HELP! (/showthread.php?tid=255452)



argument type mismatch (argument 4) - [H]265 - 15.05.2011

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


Re: PLEASE HELP! - [H]265 - 15.05.2011

bump


Re: PLEASE HELP! - NRJ53 - 15.05.2011

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



Re: PLEASE HELP! - [H]265 - 15.05.2011

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.



Re: PLEASE HELP! - NRJ53 - 15.05.2011

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


Re: PLEASE HELP! - [H]265 - 16.05.2011

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