PDA

View Full Version : Error 017, 215, 001, 036 and 107 all on the same line.


Euan Hughes
04/05/2012, 12:08 AM
When compiling a script that used to work perfectly I got these error messages:

Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 017: undefined symbol "lt"
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : warning 215: expression has no effect
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 001: expected token: ")", but found ";"
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 036: empty statement
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : fatal error 107: too many error messages on one line

This is the line affected:

for(new i = 0; i < MAX_GROUPS; i++)

Please help!

FalconX
04/05/2012, 12:20 AM
When compiling a script that used to work perfectly I got these error messages:

Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 017: undefined symbol "lt"
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : warning 215: expression has no effect
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 001: expected token: ")", but found ";"
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : error 036: empty statement
Roleplay\gamemodes\VortexRoleplay.pwn(1523) : fatal error 107: too many error messages on one line

This is the line affected:

for(new i = 0; i < MAX_GROUPS; i++)

Please help!

That must be:-


for(new i = 0; i < MAX_GROUPS; i++) // this is a looop


try and tell me if it works.

-FalconX

Euan Hughes
04/05/2012, 12:31 AM
Ok, so I did that and now I get this:

Roleplay\gamemodes\VortexRoleplay.pwn(1758) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1765) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1810) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 017: undefined symbol "amp"
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 001: expected token: ")", but found ";"
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 036: empty statement
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : fatal error 107: too many error messages on one line

Pawn code:
if(Vehicles[i][CarModel] != 537 &amp;&amp; Vehicles[i][CarModel] != 538 &amp;&amp; Vehicles[i][CarModel] != 569 &amp;&amp; 570 &amp;&amp; Vehicles[i][CarModel] != 590)

What now?

FalconX
04/05/2012, 12:33 AM
Ok, so I did that and now I get this:

Roleplay\gamemodes\VortexRoleplay.pwn(1758) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1765) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1810) : warning 217: loose indentation
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 017: undefined symbol "amp"
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 001: expected token: ")", but found ";"
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : error 036: empty statement
Roleplay\gamemodes\VortexRoleplay.pwn(1833) : fatal error 107: too many error messages on one line

Pawn code:
if(Vehicles[i][CarModel] != 537 &amp;&amp; Vehicles[i][CarModel] != 538 &amp;&amp; Vehicles[i][CarModel] != 569 &amp;&amp; 570 &amp;&amp; Vehicles[i][CarModel] != 590)

What now?

Okay I guess you've copied these from the forum. I will fix it:-


if(Vehicles[i][CarModel] != 537 && Vehicles[i][CarModel] != 538 && Vehicles[i][CarModel] != 569 && 570 && Vehicles[i][CarModel] != 590)


&amp; means &
&lt; means <

-FalconX

Euan Hughes
04/05/2012, 12:37 AM
Okay I guess you've copied these from the forum. I will fix it:-


if(Vehicles[i][CarModel] != 537 && Vehicles[i][CarModel] != 538 && Vehicles[i][CarModel] != 569 && 570 && Vehicles[i][CarModel] != 590)


&amp; means &
&lt; means <

-FalconX

Yeah, I'm doing this for a friend who did that, anyway, now I get this:

Roleplay\gamemodes\VortexRoleplay.pwn(1843) : error 017: undefined symbol "lt"
Roleplay\gamemodes\VortexRoleplay.pwn(1843) : warning 215: expression has no effect
Roleplay\gamemodes\VortexRoleplay.pwn(1843) : error 001: expected token: ")", but found ";"
Roleplay\gamemodes\VortexRoleplay.pwn(1843) : error 036: empty statement
Roleplay\gamemodes\VortexRoleplay.pwn(1843) : fatal error 107: too many error messages on one line

The line is:

for (new i = 0, j = strlen(string); i &lt; j; i++) if (string[i] &gt; '9' || string[i] &lt; '0') return 0; return 1; }

If you can help us, we owe you our all.

FalconX
04/05/2012, 12:58 AM
for (new i = 0, j = strlen(string); i < j; i++) if (string[i] > '9' || string[i] < '0') return 0; return 1; }


****** you are right but I've observe that he has copied it from somewhere, maybe from this forum as these codes are HTML Special Entities.

Go on bring the next error haha. *jk*

EDIT: Do one thing just press CTRL + H and replace &gt; with > and &lt; with < and &amp; with &

-FalconX

Euan Hughes
04/05/2012, 01:09 AM
We have now fixed it, thanks for all the help guys!

FalconX
04/05/2012, 01:14 AM
We have now fixed it, thanks for all the help guys!

It's alright.

-FalconX