warning 202: number of arguments does not match definition
#1

pawn Код:
ShowPlayerDialog(playerid, DIALOG_ADMIN, DIALOG_STYLE_MSGBOX, "{33AA33}Currently Online Admins", "{FF0000}No admins are currently online", string, "Ok", "");
Thanks.

String.
pawn Код:
string[128];
dialog is defined.
pawn Код:
#define DIALOG_ADMIN  7001
Reply
#2

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", "");
Reply
#3

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", "");
Reply
#4

Sadly, this does not show all admins currently online, it only shows 1, which is me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)