#1

Can you see an issue with this?

Код:
CreateDynamicMapIconEx(StoreInfo[b][EntryX],StoreInfo[b][EntryY],StoreInfo[b][EntryZ], icontype, 0, MAPICON_LOCAL, 100.0, -1, -1, playerid);

error 035: argument type mismatch (argument 8)
Thanks
Reply
#2

pawn Код:
CreateDynamicMapIconEx(StoreInfo[b][EntryX],StoreInfo[b][EntryY],StoreInfo[b][EntryZ], icontype, 0, MAPICON_LOCAL, 100.0, -1, -1, playerid);
//Changes to
CreateDynamicMapIconEx(StoreInfo[b][EntryX],StoreInfo[b][EntryY],StoreInfo[b][EntryZ], icontype, 0, MAPICON_LOCAL, 100.0, { -1 }, { -1 }, { playerid });
Reply
#3

Now this error:

error 008: must be a constant expression; assumed zero
Reply
#4

playerid is not constant.
Reply
#5

What do you hold in icontype, StoreInfo[b][Entry(X/Y/Z)] and what is the substitution done at MAPICON_LOCAL

`e:
Listen to ^this guy
Reply
#6

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
playerid is not constant.
So what do I do to fix it?
Reply
#7

I'd suggest reading this: https://sampforum.blast.hk/showthread.php?tid=102865/

protip: Streamer_AppendArrayData is your friend
Reply
#8

I added this below but it still shows the icons for all the players.

Streamer_AppendArrayData(4, GPSIcons[playerid][slotid], E_STREAMER_PLAYER_ID, playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)