Problem - 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: Problem (
/showthread.php?tid=300770)
Problem -
SpiderWalk - 01.12.2011
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"");
Re: Problem -
Kostas' - 01.12.2011
Replace it to
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,"#WARNINGMESSAGE");
Re: Problem -
SpiderWalk - 01.12.2011
I did but allways that errors!
Re: Problem -
[MG]Dimi - 01.12.2011
SHow us #WARNINGMESSAGE
Re: Problem -
grand.Theft.Otto - 01.12.2011
Change SendClientMessage line to this:
pawn Код:
SendClientMessage(playerid,WARNINGCOLOR,WARNINGMESSAGE);
Re: Problem -
Rob_Maate - 01.12.2011
mate you have double comment-tags + your using the define symbol.