SA-MP Forums Archive
How to fix this error - 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)
+--- Thread: How to fix this error (/showthread.php?tid=469311)



How to fix this error - FiReMaNStone - 12.10.2013

when i compile the gamemode it shows like this error
Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(979) : error 021: symbol already defined: "GetPlayerHost"
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(983) : warning 209: function "GetPlayerHost" should return a value
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(18041) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
if you know how to fix it please comment


Re: How to fix this error - iFiras - 12.10.2013

Show the code where it gives errors & warnings


Re: How to fix this error - FiReMaNStone - 12.10.2013

what code


Re: How to fix this error - edzis84 - 12.10.2013

Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(979) : error 021: symbol already defined: "GetPlayerHost"
Romove one of your GetPlayerHost, because its already defined.

Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(983) : warning 209: function "GetPlayerHost" should return a value
function should return a value, just add return.

Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(18041) : warning 203: symbol is never used: "ret_memcpy"
You have defined this symbol, buy you have never used it, so you can remove it if its not needed, or just use it. Anyways, you can run your script with this warning.


Re: How to fix this error - xVIP3Rx - 12.10.2013

The codes with errors ... The Script


Re: How to fix this error - FiReMaNStone - 12.10.2013

Quote:
Originally Posted by edzis84
Посмотреть сообщение
Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(979) : error 021: symbol already defined: "GetPlayerHost"
Romove one of your GetPlayerHost, because its already defined.

Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(983) : warning 209: function "GetPlayerHost" should return a value
function should return a value, just add return.

Код:
C:\Documents and Settings\Administrator\Desktop\[UPDATED]\gamemodes\us.pwn(18041) : warning 203: symbol is never used: "ret_memcpy"
You have defined this symbol, buy you have never used it, so you can remove it if its not needed, or just use it. Anyways, you can run your script with this warning.
Thank You very much