warning 202: number of arguments does not match definition -
Eminem 2ka9 - 31.03.2013
pawn Код:
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, "{33AA33}Currently Online Admins", "{FF0000}No admins are currently online", string, "Ok", "");
Thanks.
String.
dialog is defined.
pawn Код:
#define DIALOG_ADMIN 7001
Re: warning 202: number of arguments does not match definition -
DaRk_RaiN - 31.03.2013
You added an extra params
If you want your dialog to say Thee is no admin online use this:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, "{33AA33}Currently Online Admins", "{FF0000}No admins are online online", "Ok", "");
If you want your string output to be shown use this:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, string, "Ok", "");
AW: warning 202: number of arguments does not match definition -
[AK]Nazgul - 31.03.2013
You don't need that string there. The defenition is:
Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[])
So in your case it should be
Код:
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, "{33AA33}Currently Online Admins", "{FF0000}No admins are online online","Ok", "");
if this should be a string
Код:
"{FF0000}No admins are online online"
then you have to use it like that:
Код:
new string[128];
format(string,sizeof(string),"//DO SOMETHING HERE",//DO SOMETHING HERE);
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, "{33AA33}Currently Online Admins", string, "Ok", "");
Re: warning 202: number of arguments does not match definition -
Eminem 2ka9 - 01.04.2013
Sadly, this does not show all admins currently online, it only shows 1, which is me.