SA-MP Forums Archive
pawncc.exe not responding - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: pawncc.exe not responding (/showthread.php?tid=632505)



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(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_BLACK,"{00CCFF}[ADMIN] {FF0000}ERROR: {FFFFFF}You do not have access to this command");
    
    
ShowPlayerDialog(playeridDIALOG_AHELPDIALOG_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(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_BLACK,"{00CCFF}[ADMIN] {FF0000}ERROR: {FFFFFF}You do not have access to this command");
    
    
ShowPlayerDialog(playeridDIALOG_AHELPDIALOG_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(playeridDIALOG_HELPDIALOG_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.