expected token: ";", but found ")" -
McFellow - 22.07.2012
Hello,
I'm getting this error
Код:
HSRP\gamemodes\HSRP.pwn(71072) : error 001: expected token: ";", but found ")"
At this
pawn Код:
CMD:report(playerid, params[])
{
return ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
}
And this is the line
pawn Код:
return ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
Re: expected token: ";", but found ")" -
Cjgogo - 22.07.2012
Try replace the command with this:
pawn Код:
CMD:report(playerid, params[])
{
ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
return 1;
}
Re: expected token: ";", but found ")" -
Hoss - 22.07.2012
Cjgogo was faster
Re: expected token: ";", but found ")" -
Erpis - 22.07.2012
Use This:
pawn Код:
CMD:report(playerid, params[])
{
ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
return 1;
}
Re: expected token: ";", but found ")" -
Avi57 - 22.07.2012
try :
Код:
CMD:report(playerid, params[])
{
ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
return 1;
}
Re: expected token: ";", but found ")" -
[MM]RoXoR[FS] - 22.07.2012
Everyone above me is possibly wrong.
Your number of arguments were wrong.
pawn Код:
CMD:report(playerid, params[])
{
return ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","OK","Cancel");
}
Re: expected token: ";", but found ")" -
McFellow - 22.07.2012
I replaced it but still get this error
Код:
HSRP\gamemodes\HSRP.pwn(71072) : error 001: expected token: ";", but found ")"
Re: expected token: ";", but found ")" -
newbienoob - 22.07.2012
Read [MM]RoXoR[FS]'s post. By the way, if you want your dialog to have only 1 button(Cancel), do this
pawn Код:
ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel","");//Leave it blank after "Cancel",
Re: expected token: ";", but found ")" -
McFellow - 22.07.2012
Still the same error
Re: expected token: ";", but found ")" -
[MM]RoXoR[FS] - 22.07.2012
uh.. show your REPORTMENU define