SA-MP Forums Archive
error 029: invalid expression, assumed zero - 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: error 029: invalid expression, assumed zero (/showthread.php?tid=604089)



error 029: invalid expression, assumed zero - Melktert - 31.03.2016

C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(87 -- 8 : error 029: invalid expression, assumed zero
C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(93 -- 94) : error 029: invalid expression, assumed zero
C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(117) : error 029: invalid expression, assumed zero
C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(117) : error 029: invalid expression, assumed zero
C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(117) : error 029: invalid expression, assumed zero
C:\Users\MELKTERT\Desktop\new server\gamemodes\tdm.pwn(117) : fatal error 107: too many error messages on one line

Line 87 -- 88:
Код:
		 case 2
		 {
Line 93 -- 94:
Код:
  		 case 3
  		 {
Line 117:
Код:
        SetPlayerColor(playerid, CopsColor);



Re: error 029: invalid expression, assumed zero - N0FeaR - 31.03.2016

You missing :

PHP код:
case 2:
case 
3



Re: error 029: invalid expression, assumed zero - Melktert - 31.03.2016

Ok so thats fixed now, what about line 117? It's still giving the same error.


Re: error 029: invalid expression, assumed zero - introzen - 31.03.2016

Quote:
Originally Posted by Melktert
Посмотреть сообщение
Ok so thats fixed now, what about line 117? It's still giving the same error.
Have you defined CopsColor as a hexadecimal?


Re: error 029: invalid expression, assumed zero - Melktert - 31.03.2016

Like this?

Код:
#define CopsColor 0x000EBFE9



Re: error 029: invalid expression, assumed zero - introzen - 31.03.2016

Quote:
Originally Posted by Melktert
Посмотреть сообщение
Like this?

Код:
#define CopsColor 0x000EBFE9
Yes. Show us the code above and below line 117 please.