How to fix this?
#1

How to fix this?
Quote:

C:\Documents and Settings\Andrei\My Documents\XW2.pwn(52) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Andrei\My Documents\XW2.pwn(52) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\Andrei\My Documents\XW2.pwn(56) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Andrei\My Documents\XW2.pwn(56) : error 008: must be a constant expression; assumed zero

Reply
#2

you have to show use the lines of the errors maybe a little part if it is a command
Reply
#3

52 - };
56 - };
Reply
#4

lol the complete line in said ... but read this
Quote:
Originally Posted by ssǝן‾ʎ
http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf

Read that, it's a wondrous document detailing all aspects of the language and syntax.
Reply
#5

Quote:
Originally Posted by Schock
you have to show use the lines of the errors maybe a little part if it is a command
50 new Float:checkCoords[MAX_POINTS][4] = {
51 {-36.5483,-57.9948, -17.2655,-49.2967},
52 };
53
54 new Float:checkpoints[MAX_POINTS][3] = {
55 {-22.2549,-55.6575,1003.5469},
56 };
Reply
#6

remove the comma from the end of the lines.

Comma is only used when theres another line following.

e.g.

54 new Float:checkpoints[MAX_POINTS][3] = {
55 {-22.2549,-55.6575,1003.5469},
56 {another,line,here}
57 };
Reply
#7

Quote:
Originally Posted by kc
remove the comma from the end of the lines.

Comma is only used when theres another line following.

e.g.

54 new Float:checkpoints[MAX_POINTS][3] = {
55 {-22.2549,-55.6575,1003.5469},
56 {another,line,here}
57 };
54 new Float:checkpoints[MAX_POINTS][3] = {
55 {-22.2549,-55.6575,1003.5469}
56 };
like this ?
Reply
#8

yeah, that should do it
Reply
#9

Quote:
Originally Posted by kc
yeah, that should do it
C:\Documents and Settings\Andrei\My Documents\XW2.pwn(52) : error 052: multi-dimensional arrays must be fully initialized
C:\Documents and Settings\Andrei\My Documents\XW2.pwn(56) : error 052: multi-dimensional arrays must be fully initialized
now i have this error ;[

P.S thx for all , i fixed it =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)