SA-MP Forums Archive
dialog dual language problem - 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: dialog dual language problem (/showthread.php?tid=135714)



dialog dual language problem - a-day - 21.03.2010

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[]);



Re: dialog dual language problem - a-day - 22.03.2010


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


Re: dialog dual language problem - Correlli - 22.03.2010

You should really start with basics.

Remove the [ ] from it.


Re: dialog dual language problem - MadeMan - 22.03.2010

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;
}