Little Help
#1

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"");
Reply
#2

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

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

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.
Reply
#5

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.
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)