Symbol Already Defined Problem [ + REP ]
#1

Ok i have this error while making a updates CMD


C:\Users\reece\Desktop\WURP.pwn(28900) : error 021: symbol already defined: "SendClientMessage"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


However i dont understand what iv done wrong heres the orginal script

pawn Код:
CMD:updates(playerid, params[])

    SendClientMessage(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
        SendClientMessage(playerid,COLOR_RED,      " Script Now in 1.2.1");
        SendClientMessage(playerid,COLOR_YELLOW,   " Added a /update's Command To the Server");
        SendClientMessage(playerid,COLOR_YELLOW,   " Changed /inftoall To /serverinformation ( Admins Only)");
        SendClientMessage(playerid,COLOR_YELLOW,   " SSA Now Been Made into MI6 On Request");
        SendClientMessage(playerid,COLOR_YELLOW,   " Added /adminroster To A 1338+ Roster");
        SendClientMessage(playerid,COLOR_YELLOW,   " CRC Promoted to server Scripter");
        SendClientMessage(playerid,COLOR_YELLOW,   " Re Written Some Admin Commands");
        SendClientMessage(playerid,COLOR_YELLOW,   " Fixed Some Server Bugs");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"______________________________________");
Can anyone help me with that ?
Reply
#2

What is line 28900?
Reply
#3

Ps The line that says
pawn Код:
SendClientMessage(playerid,COLOR_RED,    "Script Now In 1.2.1");
Is line 28900
Reply
#4

Try replace SendClientMessage with SCM and try comptile again.
Reply
#5

Quote:
Originally Posted by rBcollo
Посмотреть сообщение
Try replace SendClientMessage with SCM and try comptile again.
How would i do that

Im sorta new to pawno
Reply
#6

Replace this:

pawn Код:
CMD:updates(playerid, params[])

    SendClientMessage(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
        SendClientMessage(playerid,COLOR_RED,      " Script Now in 1.2.1");
        SendClientMessage(playerid,COLOR_YELLOW,   " Added a /update's Command To the Server");
        SendClientMessage(playerid,COLOR_YELLOW,   " Changed /inftoall To /serverinformation ( Admins Only)");
        SendClientMessage(playerid,COLOR_YELLOW,   " SSA Now Been Made into MI6 On Request");
        SendClientMessage(playerid,COLOR_YELLOW,   " Added /adminroster To A 1338+ Roster");
        SendClientMessage(playerid,COLOR_YELLOW,   " CRC Promoted to server Scripter");
        SendClientMessage(playerid,COLOR_YELLOW,   " Re Written Some Admin Commands");
        SendClientMessage(playerid,COLOR_YELLOW,   " Fixed Some Server Bugs");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"______________________________________");
With this:

pawn Код:
CMD:updates(playerid, params[])

        SCM(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
        SCM(playerid,COLOR_RED,      " Script Now in 1.2.1");
        SCM(playerid,COLOR_YELLOW,   " Added a /update's Command To the Server");
        SCM(playerid,COLOR_YELLOW,   " Changed /inftoall To /serverinformation ( Admins Only)");
        SCM(playerid,COLOR_YELLOW,   " SSA Now Been Made into MI6 On Request");
        SCM(playerid,COLOR_YELLOW,   " Added /adminroster To A 1338+ Roster");
        SCM(playerid,COLOR_YELLOW,   " CRC Promoted to server Scripter");
        SCM(playerid,COLOR_YELLOW,   " Re Written Some Admin Commands");
        SCM(playerid,COLOR_YELLOW,   " Fixed Some Server Bugs");
        SCM(playerid,COLOR_LIGHTBLUE,"______________________________________");
Reply
#7

C:\Users\reece\Desktop\WURP.pwn(28899) : error 004: function "SCM" is not implemented
C:\Users\reece\Desktop\WURP.pwn(28900) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28901) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28902) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28903) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28904) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28905) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28906) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(28907) : error 010: invalid function or declaration
C:\Users\reece\Desktop\WURP.pwn(2890 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.

When i did

pawn Код:
CMD:updates(playerid, params[])

        SCM(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
        SCM(playerid,COLOR_RED,      " Script Now in 1.2.1");
        SCM(playerid,COLOR_YELLOW,   " Added a /update's Command To the Server");
        SCM(playerid,COLOR_YELLOW,   " Changed /inftoall To /serverinformation ( Admins Only)");
        SCM(playerid,COLOR_YELLOW,   " SSA Now Been Made into MI6 On Request");
        SCM(playerid,COLOR_YELLOW,   " Added /adminroster To A 1338+ Roster");
        SCM(playerid,COLOR_YELLOW,   " CRC Promoted to server Scripter");
        SCM(playerid,COLOR_YELLOW,   " Re Written Some Admin Commands");
        SCM(playerid,COLOR_YELLOW,   " Fixed Some Server Bugs");
        SCM(playerid,COLOR_LIGHTBLUE,"______________________________________");
Reply
#8

Use that.
pawn Код:
CMD:updates(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
            SendClientMessage(playerid,COLOR_RED,      " Script Now in 1.2.1");
            SendClientMessage(playerid,COLOR_YELLOW,   " Added a /update's Command To the Server");
            SendClientMessage(playerid,COLOR_YELLOW,   " Changed /inftoall To /serverinformation ( Admins Only)");
            SendClientMessage(playerid,COLOR_YELLOW,   " SSA Now Been Made into MI6 On Request");
            SendClientMessage(playerid,COLOR_YELLOW,   " Added /adminroster To A 1338+ Roster");
            SendClientMessage(playerid,COLOR_YELLOW,   " CRC Promoted to server Scripter");
            SendClientMessage(playerid,COLOR_YELLOW,   " Re Written Some Admin Commands");
            SendClientMessage(playerid,COLOR_YELLOW,   " Fixed Some Server Bugs");
            SendClientMessage(playerid,COLOR_LIGHTBLUE,"______________________________________");
        }
        return 1;
    }
Reply
#9

Thanks mate , Ill rep you for this
Reply
#10

Quote:
Originally Posted by rBcollo
Посмотреть сообщение
Try replace SendClientMessage with SCM and try comptile again.
Yea that wouldn't work unless he had the SCM function, since its a custom made one.

To OP:
You were just missing a brace...
pawn Код:
CMD:updates(playerid, params[])
{//<======here
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"__________Server Updates 1.2.1________");
    SendClientMessage(playerid,COLOR_RED," Script Now in 1.2.1");
    SendClientMessage(playerid,COLOR_YELLOW," Added a /update's Command To the Server");
    SendClientMessage(playerid,COLOR_YELLOW," Changed /inftoall To /serverinformation ( Admins Only)");
    SendClientMessage(playerid,COLOR_YELLOW," SSA Now Been Made into MI6 On Request");
    SendClientMessage(playerid,COLOR_YELLOW," Added /adminroster To A 1338+ Roster");
    SendClientMessage(playerid,COLOR_YELLOW," CRC Promoted to server Scripter");
    SendClientMessage(playerid,COLOR_YELLOW," Re Written Some Admin Commands");
    SendClientMessage(playerid,COLOR_YELLOW," Fixed Some Server Bugs");
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"______________________________________");
    return 1;
}
Thats all that was wrong with it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)