pawncc.exe not responding
#1

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.
Reply
#2

What is \\cc though
Reply
#3

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
Reply
#4

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.
Reply
#5

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;

Reply
#6

You're missing the dialog caption, aka the title. You're just providing buttons and info parameters.
Reply
#7

Ahhh thanks man, I'm really blind nowadays.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)