Warning: number of arguments does not match definition +REP
#1

CLOSED
Reply
#2

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[])
Reply
#3

optimize your scripts.

PHP код:
if(!fexist(file)) 
{
    
ShowPlayerDialog(playeridDIALOG_LANGDIALOG_STYLE_LIST"xEF Gaming - Select Your""REnglish\nEspaсole""Select""Cancel"); 

Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)