Warning: number of arguments does not match definition +REP - 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)
+--- Thread: Warning: number of arguments does not match definition +REP (
/showthread.php?tid=586161)
Warning: number of arguments does not match definition +REP -
Rodri99 - 19.08.2015
CLOSED
Re: Warning: number of arguments does not match definition +REP -
rymax99 - 19.08.2015
You're missing the last parameter/second button. If you don't want to use the button, then use '""' to hide the button, but you must include the parameter.
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
(playerid, dialogid, style, caption[], info[], button1[],
button2[])
Re: Warning: number of arguments does not match definition +REP -
iTakelot - 19.08.2015
optimize your scripts.
PHP код:
if(!fexist(file))
{
ShowPlayerDialog(playerid, DIALOG_LANG, DIALOG_STYLE_LIST, "xEF Gaming - Select Your", "REnglish\nEspaсole", "Select", "Cancel");
}
Re: Warning: number of arguments does not match definition +REP -
brandypol - 19.08.2015
Quote:
Originally Posted by Rodri99
if(!fexist(file)) { // if the file does not exists - LANGUAGE BY RODRI -------------------------------- Eddehaim AH.
ShowPlayerDialog(playerid,DIALOG_LANG,DIALOG_STYLE _LIST,"xEF Gaming - Select Your Language","English\nEspaсol"); // WARNING LINE
}
How can i fix it?
Thanks to all,
Rodri.
|
This should work
Код:
ShowPlayerDialog(playerid,DIALOG_LANG,DIALOG_STYLE _LIST, "xEF Gaming - Select Your Language", "English", "Espaсol");
}
And here's a link if you ever need some help again to script dialogs :
https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog