SA-MP Forums Archive
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=507320)



error 029: invalid expression, assumed zero - rockhopper - 17.04.2014

Код:
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);//not bought
		MapIcon[houseid] = CreateDynamicMapIcon(31, Float:iconx, Float:icony, Float:iconz, 31, 0, MAPICON_LOCAL)
	}
I was editing Simple House System i was just adding House Map icons and i am getting the following error on the map icon line


Re: error 029: invalid expression, assumed zero - ChuckyBabe - 17.04.2014

Where is that line ?


Re: error 029: invalid expression, assumed zero - rockhopper - 17.04.2014

this line
Код:
MapIcon[houseid] = CreateDynamicMapIcon(31, Float:iconx, Float:icony, Float:iconz, 31, 0, MAPICON_LOCAL)
	}



Re: error 029: invalid expression, assumed zero - Dignity - 17.04.2014

Do you have these things defined?

pawn Код:
Float:iconx, Float:icony, Float:iconz

EDIT: Remove the "Float:" values infront of the icon[x,yz] if you have them defined.


Re: error 029: invalid expression, assumed zero - Sojo12 - 17.04.2014

Delete


Re: error 029: invalid expression, assumed zero - ChuckyBabe - 17.04.2014

Try this

pawn Код:
MapIcon[houseid] = CreateDynamicMapIcon(31, Float:iconx, Float:icony, Float:iconz, 31, 0, MAPICON_LOCAL);
    }



Re: error 029: invalid expression, assumed zero - rockhopper - 17.04.2014

nope not working any of them anything else ?


Re: error 029: invalid expression, assumed zero - ChuckyBabe - 17.04.2014

rockhopper

If u use this

pawn Код:
MapIcon[houseid] = CreateDynamicMapIcon(31, Float:iconx, Float:icony, Float:iconz, 31, 0, MAPICON_LOCAL);
    }
Make sure u change

pawn Код:
Float:iconx, Float:icony, Float:iconz



Re: error 029: invalid expression, assumed zero - Dignity - 17.04.2014

Quote:
Originally Posted by ChuckyBabe
Посмотреть сообщение
rockhopper

If u use this

pawn Код:
MapIcon[houseid] = CreateDynamicMapIcon(31, Float:iconx, Float:icony, Float:iconz, 31, 0, MAPICON_LOCAL);
    }
Make sure u change

pawn Код:
Float:iconx, Float:icony, Float:iconz
You're not helping, you're just quoting what I and other people already said.


O.T.:

pawn Код:
native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Try:

pawn Код:
MapIcon[houseid] = CreateDynamicMapIcon(iconx, icony, iconz, 31, -1, 0, 0,-1, 100.0);



Re: error 029: invalid expression, assumed zero - rockhopper - 17.04.2014

same errors else can anyone tell me how to add map icons in this code
Код:
if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
	{
		HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);//not bought
	}
	else
	{
		HousePickup[houseid] = CreatePickup(1272,23, iconX, iconY, iconZ);//bought
	}