error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")"
#1

Код:
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : error 029: invalid expression, assumed zero
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : warning 215: expression has no effect
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : warning 215: expression has no effect
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : error 001: expected token: ";", but found ")"
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : error 029: invalid expression, assumed zero
C:\Users\Test\Desktop\BCRP\gamemodes\bcrp.pwn(10029) : fatal error 107: too many error messages on one line
This is what is on thee line
Код:
		if(strcmp(var1, "/callspeaker", true) == 0)
Reply
#2

It can't be that line, that line would never expect a ';'.

Also, you should check out YCMD or ZCMD. Using strcmp commands sucks.
Reply
#3

Show the full code, there's nothing wrong with that line in itself.
Reply
#4

show full code
Reply
#5

Код:
		if(strcmp(var1, "/callspeaker", true) == 0)
		{
			if((608 + 1103172 + (playerid << 2) + 1103172 + (playerid << 2)) != 255 && (2272 + 1532980 + ((608 + 1103172 + (playerid << 2) + 1103172 + (playerid << 2)) << 2) + 1532980 + ((608 + 1103172 + (playerid << 2) + 1103172 + (playerid << 2)) << 2)) == 2)
			{
				new var6 = strlen(cmdtext);
				while(var2 < var6 && (cmdtext + (var2 << 2)) <= 32)
				{
				}
				new var7 = var2;
				new var8[128];
				while(var2 < var6 && (var2 - var7) < 127)
				{
					(var2 - var7) << 2 = cmdtext + (var2 << 2);
				}
				(var2 - var7) << 2 = 0;
				if(!strlen(var8))
				{
					SendClientMessage(playerid, 0xE0EA64AA, "[USAGE] /callspeaker [text]");
					return 1;
				}
				new var9[256];
				format(var9, 256, "http://translate.******.com/translate_tts?tl=en&q=%s", var8);
				PagerText(var9);
			}
			return 1;
		}
Reply
#6

i think it has to do with var
Reply
#7

I don't see the problem but I may be blind. However, this can cause an eternal loop:
Код:
while(var2 < var6 && (cmdtext + (var2 << 2)) <= 32)
{
}
Reply
#8

Quote:
Originally Posted by Crayder
Посмотреть сообщение
I don't see the problem but I may be blind. However, this can cause an eternal loop:
Код:
while(var2 < var6 && (cmdtext + (var2 << 2)) <= 32)
{
}
So anyway to fix this?
Reply
#9

Quote:
Originally Posted by ShiffeyTheGamer
Посмотреть сообщение
So anyway to fix this?
You don't even need those lines. They do absolutely nothing. Also, I can't recreate your original problem. Can we see more code?
Reply
#10

What i meant by show the code, is show the code around it, not just below it.
Show some code above as well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)