SA-MP Forums Archive
Complie error need help - 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: Complie error need help (/showthread.php?tid=455289)



Complie error need help - l1lwayn3 - 01.08.2013

When i try to complie i get those errors:

(54090) : error 029: invalid expression, assumed zero
(54090) : error 001: expected token: ")", but found ";"
(54090) : error 036: empty statement
(54090) : fatal error 107: too many error messages on one line


at this string: while ((index < length) && (string[index] <= ' '))


Re: Complie error need help - wumpyc - 01.08.2013

Try
Код:
while (index < length && string[index] <= ' ')



Re: Complie error need help - l1lwayn3 - 01.08.2013

Quote:

Try
Code:

while (index < length && string[index] <= ' ')
thanks, now it works, but i got another errors now

(54116) : error 029: invalid expression, assumed zero
(54116) : error 001: expected token: ")", but found ";"
(54116) : error 036: empty statement
(54116) : fatal error 107: too many error messages on one line

at this string: while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))


Re: Complie error need help - wumpyc - 01.08.2013

Quote:
Originally Posted by l1lwayn3
Посмотреть сообщение
thanks, now it works, but i got another errors now

(54116) : error 029: invalid expression, assumed zero
(54116) : error 001: expected token: ")", but found ";"
(54116) : error 036: empty statement
(54116) : fatal error 107: too many error messages on one line

at this string: while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
If that helped try replacing this string with this now:
Код:
while (index < length && string[index] > ' ' && index - offset < sizeof(result) - 1)



Re: Complie error need help - l1lwayn3 - 01.08.2013

thanks man, you"re the best

problem solved


Re: Complie error need help - wumpyc - 01.08.2013

Quote:
Originally Posted by l1lwayn3
Посмотреть сообщение
thanks man, you"re the best

problem solved
No problem