Unknown Error from YSI?
#1

Код:
C:\Users\User\Desktop\h\pawno\include\YSI\y_timers.inc(259) : warning 219: local variable "timer" shadows a variable at a preceding level
Should I ignore it or something?

Does it solve those errors/warnings?

Код:
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : error 012: invalid function call, not a valid address
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : warning 215: expression has no effect
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\h\gamemodes\test.pwn(3032) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 3032:
Quote:

ProxDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLO W,COLOR_YELLOW); }

Reply
#2

The problem is, y_timers.inc has a local variable called timer which shadows/exist elsewhere in your code. Probably another plugin you have which uses that variable name. Also, the 7th argument in that ProxDetector function is "COLOR_YELLO W" instead of "COLOR_YELLOW". Solve these two problems and the rest should be fine, if not post back.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)