SA-MP Forums Archive
Error 017, 215, 001, 036 and 107 all on the same line. - 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 017, 215, 001, 036 and 107 all on the same line. (/showthread.php?tid=339540)



Error 017, 215, 001, 036 and 107 all on the same line. - Euan Hughes - 04.05.2012

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!


Re: Error 017, 215, 001, 036 and 107 all on the same line. - FalconX - 04.05.2012

Quote:
Originally Posted by Euan Hughes
Посмотреть сообщение
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:-

pawn Код:
for(new i = 0; i < MAX_GROUPS; i++) // this is a looop
try and tell me if it works.

-FalconX


Re: Error 017, 215, 001, 036 and 107 all on the same line. - Euan Hughes - 04.05.2012

Ok, so I did that and now I get this:

Roleplay\gamemodes\VortexRoleplay.pwn(175 : 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?


Re: Error 017, 215, 001, 036 and 107 all on the same line. - FalconX - 04.05.2012

Quote:
Originally Posted by Euan Hughes
Посмотреть сообщение
Ok, so I did that and now I get this:

Roleplay\gamemodes\VortexRoleplay.pwn(175 : 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:-

pawn Код:
if(Vehicles[i][CarModel] != 537 && Vehicles[i][CarModel] != 538 && Vehicles[i][CarModel] != 569 && 570 && Vehicles[i][CarModel] != 590)
&amp; means &
&lt; means <

-FalconX


Re: Error 017, 215, 001, 036 and 107 all on the same line. - Euan Hughes - 04.05.2012

Quote:
Originally Posted by FalconX
Посмотреть сообщение
Okay I guess you've copied these from the forum. I will fix it:-

pawn Код:
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.


Re: Error 017, 215, 001, 036 and 107 all on the same line. - FalconX - 04.05.2012

pawn Код:
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


Re: Error 017, 215, 001, 036 and 107 all on the same line. - Euan Hughes - 04.05.2012

We have now fixed it, thanks for all the help guys!


Re: Error 017, 215, 001, 036 and 107 all on the same line. - FalconX - 04.05.2012

Quote:
Originally Posted by Euan Hughes
Посмотреть сообщение
We have now fixed it, thanks for all the help guys!
It's alright.

-FalconX