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(14948) : warning 217: loose indentation
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14948) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 017: undefined symbol "Blindagem"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Petrick\Desktop\SV11\gamemodes\BM.pwn(14953) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
PHP код:
|