PDA

View Full Version : Warning: number of arguments does not match definition +REP


Rodri99
19/08/2015, 09:46 PM
CLOSED

rymax99
19/08/2015, 09:51 PM
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://wiki.sa-mp.com/wiki/ShowPlayerDialog
(playerid, dialogid, style, caption[], info[], button1[], button2[])

iTakelot
19/08/2015, 09:52 PM
optimize your scripts.


if(!fexist(file))
{
ShowPlayerDialog(playerid, DIALOG_LANG, DIALOG_STYLE_LIST, "xEF Gaming - Select Your", "REnglish\nEspaņole", "Select", "Cancel");
}

brandypol
19/08/2015, 09:52 PM
if(!fexist(file)) { // if the file does not exists - LANGUAGE BY RODRI -------------------------------- Eddehaim AH. :D
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 :
http://wiki.sa-mp.com/wiki/How_to_Create_a_Dialog