01.12.2011, 19:22
Hello i got 4 errors but i dont know how to fix them:
This is code
Pawno showing error in this line
Код:
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.
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;
}
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");