Warnings
#1

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"

Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)