SA-MP Forums Archive
Invalid Expression - 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: Invalid Expression (/showthread.php?tid=612564)



Invalid Expression - JessThompson - 19.07.2016

I can't seem to find the error in this statement?

Код:
downtown.pwn(20317) : warning 217: loose indentation
downtown.pwn(20317) : error 029: invalid expression, assumed zero

downtown.pwn(20332) : warning 217: loose indentation
downtown.pwn(20332) : error 029: invalid expression, assumed zero

downtown.pwn(20347) : warning 217: loose indentation
downtown.pwn(20347) : error 029: invalid expression, assumed zero
LINE 20317
Код:
		if(playertextid == DealershipCatBike[playerid])
		{
			new cardealerid = GetClosestCarDealerShip(playerid);
			if(cardealerid != 1)
			{
				SCM(playerid, COLOR_GREEN, "You clicked Bikes!");
				HideDealershipCats(playerid);
				SetIntVar(playerid, "SelectingVehicle", 1);
				//ShowDealershipBuyTextdraw(playerid);
   `        } <<<<<<<<<<<<<<<<< THIS LINE HERE
 			else
			{
				SCM(playerid, COLOR_RED, "This is not a car dealership!");
			}
		}
The rest are the same just diffrent vars


Re: Invalid Expression - ColdGamePlay - 19.07.2016

Код:
if(playertextid == DealershipCatBike[playerid])
	{
		new cardealerid = GetClosestCarDealerShip(playerid);
		if(cardealerid != 1)
		{
		        SCM(playerid, COLOR_GREEN, "You clicked Bikes!");
			HideDealershipCats(playerid);
			SetIntVar(playerid, "SelectingVehicle", 1);
			//ShowDealershipBuyTextdraw(playerid);
               } 
 		else
		{
			SCM(playerid, COLOR_RED, "This is not a car dealership!");
		}
	}



Re: Invalid Expression - OneDay - 19.07.2016

indent it more and remove `


Re: Invalid Expression - JessThompson - 19.07.2016

remove the bracket? it will mess the code up??


Re: Invalid Expression - Stinged - 19.07.2016

What's "SetIntVar"?
Do you mean "SetPVarInt"?


Re: Invalid Expression - ColdGamePlay - 20.07.2016

Quote:
Originally Posted by JessThompson
Посмотреть сообщение
remove the bracket? it will mess the code up??
Not the bracket there is a " ` " before it