error 029: invalid expression, assumed zero - 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 029: invalid expression, assumed zero (
/showthread.php?tid=570195)
error 029: invalid expression, assumed zero -
Karolukas123 - 06.04.2015
Код:
}
if((playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10)
{ //his line error
if(nesaginklus[playerid] == 1)
{
GivePlayerMoneyA(killerid, 5000);
playerDB[killerid][stazasteisesaugos] +=10;
SendClientMessage(killerid, RED,"Uћ ћaidėjo kuris neљėsi ginklų siuntą nuћudymą gavote 5.000 Ђ ir 10 teisėsaugos staћo");
nesaginklus[playerid] = 0;
}
error: error 029: invalid expression, assumed zero
Re: error 029: invalid expression, assumed zero -
BleverCastard - 06.04.2015
if((playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10)
You have two opening brackets and only need one.
Re: error 029: invalid expression, assumed zero -
Misiur - 06.04.2015
pawn Код:
if((playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10)
//change to
if(playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10)
Re: error 029: invalid expression, assumed zero -
Karolukas123 - 06.04.2015
Thanks
Re: error 029: invalid expression, assumed zero -
BleverCastard - 06.04.2015
Quote:
Originally Posted by Misiur
pawn Код:
if((playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10) //change to if(playerDB[killerid][specialybe] == 1 || playerDB[killerid][specialybe] == 10)
|
Don't see the point in handing him the code. How will he learn? The majority of the forums just copy and paste code handed to them.