error 029: invalid expression, assumed zero
#1

Код:
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
Reply
#2

Where is that line ?
Reply
#3

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

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.
Reply
#5

Delete
Reply
#6

Try this

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

nope not working any of them anything else ?
Reply
#8

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

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);
Reply
#10

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
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)