28.03.2015, 12:08
hello
i have problem , i get warning in this command , i added this define :
about crasher, and i get warn in this cmd , /fvr, i don't get warning in this cmd before.
warning
Line :
full code
i have problem , i get warning in this command , i added this define :
Код:
static VehicleID[MAX_PLAYERS];
warning
Код:
warning 219: local variable "VehicleID" shadows a variable at a preceding level
Код:
new VehicleID = GetPlayerVehicleID(playerid);
pawn Код:
CMD:fv(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_BLUE, "You are not in a vehicle");
{
if(playerVariables[playerid][pAdminLevel] >= 1)
{
new VehicleID = GetPlayerVehicleID(playerid);
RepairVehicle(VehicleID);
SendClientMessage(playerid, COLOR_BLUE, "Vehicle repaired succesfull!");
}
else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
}
return 1;
}