SA-MP Forums Archive
Little Help - 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: Little Help (/showthread.php?tid=300408)



Little Help - SpiderWalk - 30.11.2011

I cant find the problem:
Код:
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.
Here is Code
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");



Re: Little Help - moadi - 30.11.2011

pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,"#WARNINGMESSAGE");
Try this.


Re: Little Help - SpiderWalk - 30.11.2011

Quote:
Originally Posted by moadi
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,"#WARNINGMESSAGE");
Try this.
What you change


Re: Little Help - Kostas' - 30.11.2011

You had
pawn Код:
SendClientMessage(playerid,WARNINGCOLOR,""#WARNINGMESSAGE"");
moadi changed to
pawn Код:
SendClientMessage(playerid,WARNINGCOLOR,"#WARNINGMESSAGE");
You had double "" and instead of end it at the );, it continued.


Re: Little Help - Vince - 30.11.2011

Your adjustment will just send the literal text "#WARNINGMESSAGE" to the player and that's probably not the intention. Just put the define without the quotes whatsoever and it should work just like that.


Re: Little Help - ElkaBlazer - 30.11.2011

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



Re: Little Help - [MG]Dimi - 30.11.2011

pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playerid,WARNINGCOLOR,""WARNINGMESSAGE"");