error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
ShiffeyTheGamer - 02.04.2015
Код:
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)
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
Crayder - 02.04.2015
It can't be that line, that line would never expect a ';'.
Also, you should check out YCMD or ZCMD. Using strcmp commands sucks.
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
CalvinC - 02.04.2015
Show the full code, there's nothing wrong with that line in itself.
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
HydraHumza - 02.04.2015
show full code
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
ShiffeyTheGamer - 03.04.2015
Код:
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;
}
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
ShiffeyTheGamer - 03.04.2015
i think it has to do with var
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
Crayder - 03.04.2015
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)
{
}
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
ShiffeyTheGamer - 03.04.2015
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?
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
Crayder - 03.04.2015
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?
Re: error 029: invalid expression, assumed zero, error 001: expected token: ";", but found ")" -
CalvinC - 03.04.2015
What i meant by show the code, is show the code around it, not just below it.
Show some code above as well.