expected token: ";", but found ")"
#1

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

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;
}
Reply
#3

Cjgogo was faster
Reply
#4

Use This:
pawn Код:
CMD:report(playerid, params[])
{
    ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
    return 1;
}
Reply
#5

try :
Код:
CMD:report(playerid, params[])
{
    ShowPlayerDialog(playerid, REPORTMENU, DIALOG_STYLE_LIST, "Report System", "Hacker\n\nNot Listed Here","Cancel");
    return 1;
}
Reply
#6

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

I replaced it but still get this error
Код:
HSRP\gamemodes\HSRP.pwn(71072) : error 001: expected token: ";", but found ")"
Reply
#8

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",
Reply
#9

Still the same error
Reply
#10

uh.. show your REPORTMENU define
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)