SA-MP Forums Archive
Unknown Error from YSI? - 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: Unknown Error from YSI? (/showthread.php?tid=473543)



Unknown Error from YSI? - Gogorakis - 03.11.2013

Код:
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); }




Re: Unknown Error from YSI? - AlonzoTorres - 03.11.2013

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.