SA-MP Forums Archive
SetlayerMapIcon, Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetlayerMapIcon, Help (/showthread.php?tid=97767)



SetlayerMapIcon, Help - Axiot - 16.09.2009

Sorry this is nubish question, i am do a code with setmapicon but i have some warn, can anybody give me example of that code, pls you example.

Thank you!


Re: SetlayerMapIcon, Help - Correlli - 16.09.2009

Post the warning/error.

(https://sampwiki.blast.hk/wiki/SetPlayerMapIcon)


Re: SetlayerMapIcon, Help - Axiot - 16.09.2009

Код:
C:\Documents and Settings\User\Desktop\samp02Xserver.win32\gamemodes\larp.pwn(45478) : warning 235: public function lacks forward declaration (symbol "Onplayerconnect")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      9172 bytes
Code size:     1687936 bytes
Data size:     3708408 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4982 cells (19928 bytes)
Total requirements: 5421900 bytes

1 Warning.



Re: SetlayerMapIcon, Help - Correlli - 16.09.2009

This has nothing to do with the SetPlayerMapIcon and the function isn't called "Onplayerconnect", it's "OnPlayerConnect".


Re: SetlayerMapIcon, Help - Axiot - 16.09.2009

Код:
C:\Documents and Settings\User\Desktop\samp02Xserver.win32\gamemodes\larp.pwn(45479) : error 021: symbol already defined: "OnPlayerConnect"
C:\Documents and Settings\User\Desktop\samp02Xserver.win32\gamemodes\larp.pwn(45483) : warning 209: function "OnPlayerConnect" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: SetlayerMapIcon, Help - Clavius - 16.09.2009

You already have an OnPlayerConnect, use that one.


Re: SetlayerMapIcon, Help - Axiot - 16.09.2009

Quote:
Originally Posted by player007
You already have an OnPlayerConnect, use that one.
xD thank you, i said nobish question, thnx


Re: SetlayerMapIcon, Help - Clavius - 16.09.2009

Quote:
Originally Posted by [ACI
Abe ]
Quote:
Originally Posted by player007
You already have an OnPlayerConnect, use that one.
xD thank you, i said nobish question, thnx
Okay but don't forget to delete the one you made, or else the error 021 will appear again.