11.09.2012, 20:12
Bom Galera eu coloquei este sistema de blindagem no meu gm tudo certo mais quando compilo da erro olhe
Sistema
erro
Sistema
PHP код:
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;
}
PHP код:
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.