SA-MP Forums Archive
Little Help! - 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: Little Help! (/showthread.php?tid=344024)



Little Help! - Sanady - 19.05.2012

Hello.I got problem with /acmds command.I dont see error

CODE:
pawn Код:
CMD:acmds( playerid, params[ ] )
{
    if ( GetPVarInt( playerid, "Level" ) < 1 )
        return SendClientMessage( playerid, -1, "You must be an Admin level 1 or above to view the commands");

    new CBox[ 512 ];
    format( CBox, sizeof CBox, "{FFFFFF}Current Admin commands\n\n\n\
                                "
COL_RED"Level {FFFFFF}1 "COL_RED"- {FFFFFF}( "COL_RED""Level1" {FFFFFF})\n\");

    format( CBox, sizeof CBox, "
%s/sethealth /setarmour /heal /kick\n\n\
                                "COL_RED"Level {FFFFFF}2 "COL_RED"- {FFFFFF}( "COL_RED""Level2" {FFFFFF})\n\", CBox);

    format( CBox, sizeof CBox, "
%s/akill /mute /unmute /freeze /unfreeze /spawn\n\n\
                                "COL_RED"Level {FFFFFF}3 "COL_RED"- {FFFFFF}( "COL_RED""Level3" {FFFFFF})\n\", CBox);

    format( CBox, sizeof CBox, "
%s/ban /setmoney /setscore\n\n\
                                "COL_RED"Level {FFFFFF}4 "COL_RED"- {FFFFFF}( "COL_RED""Level4" {FFFFFF})\n\", CBox);

    format( CBox, sizeof CBox, "
%s/gmx /settime /setweather\n\n\
                               "COL_RED"Level {FFFFFF}5 "COL_RED"- {FFFFFF}( "COL_RED""Level5" {FFFFFF})\n\
                               /setlevel /setvip", CBox);

    ShowPlayerDialog( playerid, INFO_BOX, DIALOG_STYLE_MSGBOX, "
{FFFFFF}Admin Commands", CBox, "Oke", "");
    return 1;
}
ERRORS
Код:
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(577) : error 037: invalid string (possibly non-terminated string)
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(577) : error 029: invalid expression, assumed zero
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(577) : error 017: undefined symbol "FFFFFF"
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(577) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Please like god help me!


Re: Little Help! - Jstylezzz - 19.05.2012

Can you show line 577?
You most likely forgot a " at the end of a string