14.02.2013, 23:58
Alguйm me ajuda com estes warnings ?!
Aqui o exemplo da linha 2665
Vlw!
pawn Код:
Compilando BRA.pwn...
C:include\MSi\msi_radars.inc(366) : warning 209: function "GMInit" should return a value
C:\BLS.pwn(24) : warning 201: redefinition of constant/macro (symbol "MAX_RADARS")
C:\BLS.pwn(2665) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17077) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17132) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17144) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17156) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17168) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17180) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(17192) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(27491) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(27954) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(28351) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(28444) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(31837) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(42581) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(56698) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(60741) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(60780) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(60947) : warning 219: local variable "X" shadows a variable at a preceding level
C:\BLS.pwn(61042) : warning 219: local variable "X" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 14048 bytes
Code size: 3075504 bytes
Data size: 11909652 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:15015588 bytes
21 Warnings.
pawn Код:
new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z;GetPlayerPos(playerid,PX,PY,PZ);GetVehiclePos(vehicleid, X,Y,Z);new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);if(Distance <= radi*radi) {