pawncc.exe not responding -
Melktert - 15.04.2017
So these few lines make my pawno not respond. Could someone help me splitting up these lines?
PHP код:
CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_BLACK,"{00CCFF}[ADMIN] {FF0000}ERROR: {FFFFFF}You do not have access to this command");
ShowPlayerDialog(playerid, DIALOG_AHELP, DIALOG_STYLE_MSGBOX, "\\cc{FF0000}NOTE: {FFFFFF} You do not have access to higher level commands if you are a lower level.\n\\ccLevel {FFFF00}1{FFFFFF} Commands\n\\cc\n\\cc/kick, /goto, /achat, /aduty, /ahelp\n\\cc\n\\ccLevel {FFFF00}2{FFFFFF} Commands\n\\cc\n\\ccN/A\n\\cc\n\\ccLevel {FFFF00}3{FFFFFF} Commands\n\\cc\n\\cc/ban, /givemoney\n\\cc\n\\ccLevel {FFFF00}4{FFFFFF} Commands\n\\cc\n\\cc/setscore\n\\cc\n\\ccLevel {FFFF00}5{FFFFFF} Commands\n\\cc\n\\cc/setadmin\n\\cc\n\\cc\n", "Close", "");
return 1;
}
EDIT: I'm using a include so the "\\cc" is not a problem.
Re: pawncc.exe not responding -
Marricio - 15.04.2017
What is \\cc though
Re: pawncc.exe not responding -
Melktert - 15.04.2017
Ah, it was actually supposed to be \\c and not \\cc. It centers the text in the dialog... Pawno still doesn't respond after the fix.
https://sampforum.blast.hk/showthread.php?tid=625090
Re: pawncc.exe not responding -
Inceptio - 15.04.2017
A few years ago, I remember having this problem.
I managed to fix it by removing some lines(Which I don't remember)
Sorry but that may be usefull, if you start by removing some which you think that may be the causer.
Re: pawncc.exe not responding -
Melktert - 15.04.2017
Changed it to
PHP код:
CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_BLACK,"{00CCFF}[ADMIN] {FF0000}ERROR: {FFFFFF}You do not have access to this command");
ShowPlayerDialog(playerid, DIALOG_AHELP, DIALOG_STYLE_MSGBOX, "\\c{FF0000}NOTE: {FFFFFF} You do not have access to higher level commands if you are a lower level.\n\\cLevel {FFFF00}1{FFFFFF} Commands\n\\c/kick, /goto, /achat, /aduty, /ahelp\n\\cLevel {FFFF00}2{FFFFFF} Commands\n\\cN/A\n\\cLevel {FFFF00}3{FFFFFF} Commands\n\\c/ban, /givemoney\n\\cLevel {FFFF00}4{FFFFFF} Commands\n\\c/setscore\n\\cLevel {FFFF00}5{FFFFFF} Commands\n\\c/setadmin\n", "Close", "");
return 1;
}
and it compiled, but says Unknown Command and nothing pops up.
EDIT: same with this one...
PHP код:
CMD:help(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Help", "{FFFFFF}The objective of the game is to "COL_RED"kill"COL_WHITE" as many people around you as possible\n {FFFF00}[COMMANDS]{FFFFFF} /ranks, /myrank, /help, /admins, /stats\n {FFFF00}[COMMANDS]{FFFFFF} /pm, /weaponshop, /skin, /kill, /report", "Close", "");
return 1;
}
Re: pawncc.exe not responding -
Marricio - 15.04.2017
You're missing the dialog caption, aka the title. You're just providing buttons and info parameters.
Re: pawncc.exe not responding -
Melktert - 15.04.2017
Ahhh thanks man, I'm really blind nowadays.