How to fix this? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to fix this? (
/showthread.php?tid=64668)
How to fix this? -
sk1llz - 06.02.2009
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
|
Re: How to fix this? -
Schock - 06.02.2009
you have to show use the lines of the errors maybe a little part if it is a command
Re: How to fix this? -
sk1llz - 06.02.2009
52 - };
56 - };
Re: How to fix this? -
Schock - 06.02.2009
lol the complete line in said ... but read this
Quote:
|
Originally Posted by ssǝן‾ʎ
|
Re: How to fix this? -
sk1llz - 06.02.2009
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 };
Re: How to fix this? -
kc - 06.02.2009
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 };
Re: How to fix this? -
sk1llz - 06.02.2009
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 ?
Re: How to fix this? -
kc - 06.02.2009
yeah, that should do it
Re: How to fix this? -
sk1llz - 06.02.2009
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 =)