Command Problems
#1

Hello everybody.I got problem with command stats.I don`t see any problems but it shows me 7 erros I don`t know why

Code:
pawn Код:
CMD:stats( playerid, params[ ] )
{
    if ( GetPVarInt( playerid, "Logged" ) == 0 )
        return SendClientMessage( playerid, -1, ""COL_RED"ERROR:{FFFFFF} To view your stats you must be logged in ");

    new
        iBox[ 1024 ],
        RegDate[ 40 ],
        pLastOn[ 20 + 20 ],
        pLevel = GetPVarInt( playerid, "Level")
    ;
    GetPVarString( playerid, "Date", RegDate, sizeof RegDate );
    GetPVarString( playerid, "On", pLastOn, sizeof pLastOn );

    format( iBox, sizeof iBox, "{FFFFFF}Hello "COL_LIGHTBLUE"%s{FFFFFF}, these are your stats\n\n\
                                {FFFFFF}Admin level: "
COL_LIGHTBLUE"%s{FFFFFF}["COL_LIGHTBLUE"%d{FFFFFF}]\n\
                                {FFFFFF}VIP Level: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Moneys: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Score: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Kills: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Deaths: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Registration Date: "
COL_LIGHTBLUE"%s\n\
                                {FFFFFF}Interior: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Virtual World: "
COL_LIGHTBLUE"%d\n\
                                {FFFFFF}Last On: "
COL_LIGHTBLUE"%s",
                                pName( playerid ),
                                GetPlayerLevelName( playerid ),
                                pLevel,
                                GetPlayerVLevel( playerid ),
                                GetPlayerMoney( playerid ),
                                GetPlayerScore( playerid ),
                                GetPVarInt( playerid,"Kills" ),
                                GetPVarInt( playerid,"Deaths" ),
                                RegDate,
                                GetPlayerInterior( playerid ),
                                GetPlayerVirtualWorld( playerid ),
                                pLastOn);
                                             
    ShowPlayerDialog( playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "{FFFFFF}Your Stats!", iBox, "Ok", "");
    return 1;
}
Errors
Код:
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(644) : error 075: input line too long (after substitutions)
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(645) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(645) : error 017: undefined symbol "COL_"
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646) : warning 217: loose indentation
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646) : error 017: undefined symbol "LIGHTBLUE"
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646) : warning 215: expression has no effect
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646 -- 649) : warning 215: expression has no effect
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646 -- 655) : warning 215: expression has no effect
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(646 -- 658) : warning 215: expression has no effect
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(658) : error 001: expected token: ";", but found ")"
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(658) : warning 217: loose indentation
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(658) : error 029: invalid expression, assumed zero
D:\samp03dsvr_win32(1)\filterscripts\AdminS.pwn(658) : fatal error 107: too many error messages on one line

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


7 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)