C:\Users\Alisson\Desktop\Nova pasta\BAV Server\pawno\include\cpstream.inc(80) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\pawno\include\dutils.inc(299) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\pawno\include\dutils.inc(356) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\pawno\include\dutils.inc(465) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(908) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(1340) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(1764) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(1774) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(1916) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(2337) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\Alisson\Desktop\Nova pasta\BAV Server\gamemodes\BVU.pwn(4320) : warning 219: local variable "i" shadows a variable at a preceding level
.#include <a_samp>
main()
{
new x = 2;
new y = 3;
if(x == 0 && y == 2)
{
new x; //Declara uma variбvel com um nome idкntico ao de outra de um escopo superior.
printf("x: %d", x);
}
}
|
aonde, tem tantos " i " no game mode para eu achar no procurar palavras :/
|
:C:\Users\Alisson\Desktop\Nova pasta\BAV Server\pawno\include\cpstream.inc(80) : warning 219: local variable "i" shadows a variable at a preceding level
.
if(strcmp(cmdtext, "/trancar", true)==0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
new State;
new Float:X;
new Float:Y;
new Float:Z;
if(IsPlayerInAnyVehicle(playerid)) {
State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER) {
SendClientMessage(playerid,Vermelho,"| ERRO | Vocк precisa ser o motorista / piloto do veiculo para trancб-lo.");
return 1;
}
new i;
for(i=0;i<MAX_PLAYERS;i++) {
if(i != playerid) {
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1);
}
}
SendClientMessage(playerid,0xC0C0C0AA,"| INFO | Veiculo trancado com sucesso.");
GetPlayerPos(playerid,X,Y,Z);
PlayerPlaySound(playerid,1056,X,Y,Z);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo estб em um veiculo.");
return 1;
}
}
if(strcmp(cmdtext, "/destrancar", true)==0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
new State;
new Float:X;
new Float:Y;
new Float:Z;
if(IsPlayerInAnyVehicle(playerid)) {
State=GetPlayerState(playerid);
if(State!=PLAYER_STATE_DRIVER) {
SendClientMessage(playerid,Vermelho,"| ERRO | Vocк precisa ser o motorista / piloto do veiculo para destrancб-lo.");
return 1;
}
new i;
for(i=0;i<MAX_PLAYERS;i++) {
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
}
SendClientMessage(playerid,0xC0C0C0AA,"| INFO | Veiculo trancado com sucesso.");
GetPlayerPos(playerid,X,Y,Z);
PlayerPlaySound(playerid,1057,X,Y,Z);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "| ERRO | Vocк nгo estб em um veiculo.");
return 1;
}
}
new fulano_entrou[256];
GetPlayerName(playerid,fulano_entrou,256);
for(new i; i<sizeof(NicksProibidos); i++)
{
if(strcmp(NicksProibidos[i],fulano_entrou,true)==0)
{
SendClientMessage(playerid,Vermelho,"| BAN | Vocк foi banido por entrar com um nick proibido!");
Ban(playerid);
}
}
: warning 219: local variable "i" shadows a variable at a preceding levelfor(new i, e = GetMaxPlayers(); ++i)
{