Symbol already defined: "SetPlayerMapIcon"
#1

Hey hey!.. [SAP]Sidhu here. I'm trying to add some icons to my gamemode, but I get an error and I'm not really sure how to fix it :P

pawn Код:
SetPlayerMapIcon(playerid, 12, 435.5161,2529.6707,16.8745, 34, 0);
    SetPlayerMapIcon(playerid, 12, 1389.2754,1768.1305,10.8203, 34, 0);
    SetPlayerMapIcon(playerid, 12, 285.9787,1932.6428,17.6406, 34, 0);
    SetPlayerMapIcon(playerid, 12, -1140.4843,-175.7608,14.1484, 34, 0);
    SetPlayerMapIcon(playerid, 12, 2114.2319,-2433.0293,13.5469, 34, 0);
Error: error 021: symbol already defined: "SetPlayerMapIcon"

All help is greatly appreciated!
Reply
#2

Код:
SetPlayerMapIcon(playerid, 0, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 1, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 2, 435.5161,2529.6707,16.8745, 34, 0);
...
for example
Reply
#3

Quote:
Originally Posted by Jefff
Код:
SetPlayerMapIcon(playerid, 0, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 1, 435.5161,2529.6707,16.8745, 34, 0);
SetPlayerMapIcon(playerid, 2, 435.5161,2529.6707,16.8745, 34, 0);
...
for example
Didnt work...
Reply
#4

Its already defined... ( Already there )
So just search for it?
Reply
#5

Show public with these icons, i think the problem is with brackets
Reply
#6

Hi there,

Your problem is from an unclosed function/callback. Which is a bracket problem. We need the whole code to help you out.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
Reply
#7

Quote:
Originally Posted by [SAP
Francis ]
Hi there,

Your problem is from an unclosed function/callback. Which is a bracket problem. We need the whole code to help you out.

Have fun scripting.

Kind regards,

Francis Morissette
SA-MP Scripter
http://sa-mp.com
you know you don't have to write "Have fun scripting... regards blablabla" all the time you can just put in in your signature...

and for the guy who asked - it's weather you didn't close a bracket like the guy above said or you put it in your script just like that with no public - try putting it in OnGameModeInIt
Reply
#8

I'm making a Gamemode, and I put it under OnPlayerConnect.. Look in the code below

http://pastebin.com/m59c1887
Reply
#9

When i did map icons i just simply added it under OnGamemodeInit
That seemed to work fine for me
Reply
#10

Quote:
Originally Posted by JoeDaDude
When i did map icons i just simply added it under OnGamemodeInit
That seemed to work fine for me
Tried it. Didnt work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)