#1

Icons are not global, it doesen't show anything on map.

Код:
 AirportZone[i][AP_ZONE_CP] = CreateDynamicMapIcon(AirportZone[i][AP_ZONE_CP][0], AirportZone[i][AP_ZONE_CP][1], AirportZone[i][AP_ZONE_CP][2], 5, 0, 0, MAPICON_GLOBAL);
Reply
#2

When you spawn your interior ID and world ID it is setted to 0 ?
If the ID's of interior or world it is not setted, that's the problem, because your icon is in .worldid = 0, and .interiorid = 0.
Reply
#3

Nope, fallenGirl you're wrong!
@Hunud
You did a problem in it's parameters, You've added MAPICON_GLOBAL instead of playerid and other params.
Fixed code.
Код:
AirportZone[i][AP_ZONE_CP] = CreateDynamicMapIcon(AirportZone[i][AP_ZONE_CP][0], AirportZone[i][AP_ZONE_CP][1], AirportZone[i][AP_ZONE_CP][2], 5, 0, -1 , -1 , -1 ,100.0, MAPICON_GLOBAL);
Here is CreateDynamicMapIcon parameters.
Код:
CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);
Reply
#4

No work. Same
Reply
#5


I tried it in 0 , 0 , 0 coords and it's working fine, The code that i used.
Код:
	CreateDynamicMapIcon(0, 0,0, 5, 0, -1 , -1 , -1 ,100.0, MAPICON_GLOBAL);
Try doing it again, Check if the coords are valid or check server log if it's showing some sort of errors..
Reply
#6

I did debug and it's showing in log here.

Код:
AirportZone[i][E_CAPTURE_ZONE_CP] = CreateDynamicMapIcon(AirportZone[i][E_APZONE][0], AirportZone[i][E_APZONE][1], AirportZone[i][E_APZONE][2], 18, 0, -1 , -1 , -1 , 100.0, MAPICON_GLOBAL);
Reply
#7

Anyone knows what's the issue ?
Reply
#8

did you load streamer and if yes does streamer load succesfully?
Reply
#9

Yeah. Streamer is loaded and i'm using last version of it.
Reply
#10

Hm, That's because 100 range is not enough to cover the whole sa, Replace 100.0 with 9999.0 (or above) Now where ever you goes you'll see it..

Fixed code.
Код:
AirportZone[i][E_CAPTURE_ZONE_CP] = CreateDynamicMapIcon(AirportZone[i][E_APZONE][0], AirportZone[i][E_APZONE][1], AirportZone[i][E_APZONE][2], 18, 0, -1 , -1 , -1 , 9999.0, MAPICON_GLOBAL);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)