dialog dual language problem
#1

so guys i hae a little problem, i tried to make a dialog in a dual language (english/german) but iґve got som errors after the compiling


this here is the error

Код:
C:\Dokumente und Einstellungen\ante\Desktop\ls\pawno\include\toni.inc(90) : error 029: invalid expression, assumed zero
C:\Dokumente und Einstellungen\ante\Desktop\ls\pawno\include\toni.inc(95) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
this here are the lines


Код:
stock ShowPlayerTextDialog(playerid, dialogid, style, caption[], caption2[], info[], info2[], button11[], button12[], button21[], button22[])
{
	if(PlayerLanguage[playerid] == 0)
 	{
		ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button11[], button21[]);
		return 1;
	}
	if(PlayerLanguage[playerid] == 1)
	{
		ShowPlayerDialog(playerid, dialogid, style, caption2[], info2[], button12[], button22[]);
		return 1;
}
	return 1;
}
line 90 is

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button11[], button21[]);

and 95 is

ShowPlayerDialog(playerid, dialogid, style, caption2[], info2[], button12[], button22[]);
Reply
#2


hey sorry for the pushing but can nobody help me ? itґs very important for me
Reply
#3

You should really start with basics.

Remove the [ ] from it.
Reply
#4

pawn Код:
stock ShowPlayerTextDialog(playerid, dialogid, style, caption[], caption2[], info[], info2[], button11[], button12[], button21[], button22[])
{
    if(PlayerLanguage[playerid] == 0)
    {
        ShowPlayerDialog(playerid, dialogid, style, caption, info, button11, button21);
        return 1;
    }
    if(PlayerLanguage[playerid] == 1)
    {
        ShowPlayerDialog(playerid, dialogid, style, caption2, info2, button12, button22);
        return 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)