SA-MP Forums Archive
Warnings - 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: Warnings (/showthread.php?tid=131067)



Warnings - iLcke - 01.03.2010

How to get rid of warnings? cause i have around 7-8 warnings:
Quote:

C:\Users\Andreew\Desktop\v1.2a.pwn(1742) : warning 235: public function lacks forward declaration (symbol "OnPlayerTeamPrivmsg")
C:\Users\Andreew\Desktop\v1.2a.pwn(2929) : warning 225: unreachable code
C:\Users\Andreew\Desktop\v1.2a.pwn(293 : warning 209: function "OnPlayerConnect" should return a value
C:\Users\Andreew\Desktop\v1.2a.pwn(4921) : warning 219: local variable "Warning" shadows a variable at a preceding level
C:\Users\Andreew\Desktop\v1.2a.pwn(5702) : warning 202: number of arguments does not match definition
C:\Users\Andreew\Desktop\v1.2a.pwn(6499) : warning 213: tag mismatch
C:\Users\Andreew\Desktop\v1.2a.pwn(6500) : warning 213: tag mismatch
C:\Users\Andreew\Desktop\v1.2a.pwn(9683) : warning 215: expression has no effect
C:\Users\Andreew\Desktop\v1.2a.pwn(999 : warning 215: expression has no effect
C:\Users\Andreew\Desktop\v1.2a.pwn(24080) : warning 203: symbol is never used: "PaintballSpawns"




Re: Warnings - MummyKillerSLO - 01.03.2010

1. forward OnPlayerTeamPrivmsg
2. Compiler cannot get to that code.
3. Add return 1;.
4. Change 'Warning' variable to Warning1
5. You didn't enter all nessesary parameters
6,7. You have entered wrong parameter
8,9. ??
10. This symbol is created, but never used.