Invalid Expression
#1

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
Reply
#2

Код:
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!");
		}
	}
Reply
#3

indent it more and remove `
Reply
#4

remove the bracket? it will mess the code up??
Reply
#5

What's "SetIntVar"?
Do you mean "SetPVarInt"?
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)