[Ajuda] local variable "i" shadows a variable at a preceding level - 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] local variable "i" shadows a variable at a preceding level (
/showthread.php?tid=385759)
local variable "i" shadows a variable at a preceding level -
Nice-.- - 17.10.2012
code \/
PHP код:
for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "BRL");
}
erro \/
PHP код:
(635) : warning 219: local variable "i" shadows a variable at a preceding level
eu nao seii mexer muito com loops to aprendendo ainda ai nao sei oq deuai
Re: local variable "i" shadows a variable at a preceding level -
Q.I - 17.10.2012
ja tem outro loop usando i
troque por qualquer outra letra no lugar do i exemplo troca por x
Re: local variable "i" shadows a variable at a preceding level -
ViniBorn - 17.10.2012
pawn Код:
for(new v = 1; v < MAX_VEHICLES; v++)
SetVehicleNumberPlate(v, "BRL");
Re: local variable "i" shadows a variable at a preceding level -
Nice-.- - 17.10.2012
Quote:
Originally Posted by Q.I
ja tem outro loop usando i
troque por qualquer outra letra no lugar do i exemplo troca por x
|
vlw !!!