new Blindagem[MAX_VEHICLES];
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp(cmdtext, "/blindar", true)) {
if(!IsPlayerInAnyVehicle(playerid))
return false;
SendClientMessage(playerid, -1, "Blindagem adcionada");
Blindagem[GetPlayerVehicleID(playerid)] = 1000;
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
if(!strcmp(cmdtext, "/verblindagem", true)) {
if(!IsPlayerInAnyVehicle(playerid))
return false;
new s[50];
format(s, 50, "Esse veнculo tem %i de blindagem", Blindagem[GetPlayerVehicleID(playerid)]);
SendClientMessage(playerid, -1, s);
return true;
}
return false;
}
public OnVehicleDamageStatusUpdate(vehicleid, playerid) {
if(Blindagem[vehicleid] > 0) {
Blindagem[vehicleid] --;
RepairVehicle(vehicleid);
if(!Blindagem[vehicleid]) {
SendClientMessage(playerid, -1, "Blindagem acabou..!");
}
}
return true;
}
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(15004) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(15004) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(15023) : warning 225: unreachable code
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(47365) : error 021: symbol already defined: "OnVehicleDamageStatusUpdate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Ja tem uma public com o mesmo nome OnVehicleDamageStatusUpdate
|