3 Warnings in MapIcons.inc
#1

3 Warnings in MapIcons.inc
Код:
C:\Users\Rainer\Desktop\Mein GTA-Server\USA State\pawno\include\MapIcons.inc(272) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Users\Rainer\Desktop\Mein GTA-Server\USA State\pawno\include\MapIcons.inc(272) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Users\Rainer\Desktop\Mein GTA-Server\USA State\pawno\include\MapIcons.inc(272) : warning 219: local variable "z2" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
MapIcons.inc(269 - 272)
Код:
(Line 269) stock GetDistanceToMapIcon(playerid, iconid)
(Line 270){
(Line 271)	new Float:x1,Float:y1,Float:z1;
(Line 272)	new Float:x2,Float:y2,Float:z2;
(Line 273)	new Float:output;
(Line 274)	GetPlayerPos(playerid, x1, y1, z1);
(Line 275)	GetMapIconPos(iconid, x2, y2, z2);
(Line 276)	output = floatsqroot(floatpower(floatabs(floatsub(x2, x1)), 2)+floatpower(floatabs(floatsub(y2, y1)), 2));
(Line 277)	return floatround(output);
}
Reply
#2

You already have 3 global-variables with the same name, re-name the local ones.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)