SA-MP Forums Archive
[Ajuda] Warning PPC_Trucking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Warning PPC_Trucking (/showthread.php?tid=505082)



Warning PPC_Trucking - comanfiss - 06.04.2014

me ajuda aii PF +REP
pawn Код:
C:\Users\Pedro Henrque\Desktop\Brasil Trucker Life\pawno\include\DOF2.inc(1391) : warning 219: local variable "a" shadows a variable at a preceding level
C:\Users\Pedro Henrque\Desktop\Brasil Trucker Life\pawno\include\DOF2.inc(1391) : warning 219: local variable "b" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.

a linha й essa 1391
pawn Код:
private DOF2::SwapSortedEntries (a [2], b [2])
{
    new c [2];
    c [0] = a [0];
    c [1] = a [1];
    a [0] = b [0];
    a [1] = b [1];
    b [0] = c [0];
    b [1] = c [1];
}



Re : Warning PPC_Trucking - ThiagoMK - 06.04.2014

Esta tudo correto nesse cod..


Re: Warning PPC_Trucking - comanfiss - 06.04.2014

mais pq ta dando esse WIRNING....?


Re: Warning PPC_Trucking - TheFlyer - 07.04.2014

pawn Код:
private DOF2::SwapSortedEntries (a2 [2], b2 [2])
{
    new c [2];
    c [0] = a2 [0];
    c [1] = a2 [1];
    a2 [0] = b2 [0];
    a2 [1] = b2 [1];
    b2 [0] = c [0];
    b2 [1] = c [1];
}



Re: Warning PPC_Trucking - comanfiss - 07.04.2014

OBG deu certim .....+REP