Problem
#1

Hello i got 4 errors but i dont know how to fix them:
Код:
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : error 001: expected token: ",", but found "-integer value-"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : warning 215: expression has no effect
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : warning 215: expression has no effect
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Korisnik\Desktop\Programi\G.R.P\gamemodes\SWReg.pwn(734) : fatal error 107: too many error messages on one line

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


4 Errors.
This is code
pawn Код:
CMD:adminduty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");
    if( AdminDuty[ playerid ] == 0 )
    {
        AdminDuty[ playerid ] = 1;
        Admin[ playerid ] = Create3DTextLabel("(( ADMIN DUTY ))",0x5CD6CAFF,30.0,40.0,50.0,10.0,0);
        Attach3DTextLabelToPlayer( Admin[ playerid ], playerid, 0.0, 0.0, 0.3);
        new string[128];
        new pName[24], pTame[24];
        GetPlayerName(playerid,pName,24);
        format(string,sizeof string,""embed_blue"[SERVER]"embed_white" Administrator %s is on Admin Duty.",pName,pTame);
        SendClientMessageToAll(COLOR_WHITE, string);
    }
    else
    {
        AdminDuty[ playerid ] = 0;
        Delete3DTextLabel( Admin[ playerid ] );
        new string[128];
        new pName[24], pTame[24];
        GetPlayerName(playerid,pName,24);
        format(string,sizeof string,""embed_blue"[SERVER]"embed_white" Administrator %s is off Admin Duty.",pName,pTame);
        SendClientMessageToAll(COLOR_WHITE, string);
    }
    return 1;
}
Pawno showing error in this line
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");
Reply
#2

Replace it to
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,"#WARNINGMESSAGE");
Reply
#3

I did but allways that errors!
Reply
#4

SHow us #WARNINGMESSAGE
Reply
#5

Change SendClientMessage line to this:

pawn Код:
SendClientMessage(playerid,WARNINGCOLOR,WARNINGMESSAGE);
Reply
#6

mate you have double comment-tags + your using the define symbol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)