02.01.2015, 23:24
To tentando criar um Incendio automatico no posto petrobras que й nessa coordenada aqui:1747.3075,-1014.8307,23.9609
Mas da esse erro aqui abaixo:
Vou passar minhas Publics para vocкs:
Abaixo as Public
E o comando /apagarince
Pessoal Porfavor me ajuda tentei de tudo
Ajude-me porfavor
Mas da esse erro aqui abaixo:
PHP код:
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(51003) : error 017: undefined symbol "fogo"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59945) : error 017: undefined symbol "CreteObject"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59945) : warning 204: symbol is assigned a value that is never used: "fogo"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59945 -- 59948) : error 001: expected token: ";", but found ")"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(60093) : error 054: unmatched closing brace ("}")
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(62786) : warning 203: symbol is never used: "FinalizarIncendio"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
//Sistema incendiar auto
forward IniciarIncendio();
forward Finalizarincendio();
forward TempoIncendioP();
PHP код:
public IniciarIncendio()
{
new fogo = CreteObject(18690,1747.3075,-1014.8307,23.9609,283.5074,0,0,0,0,0,0);
SendClientMessageToAll(0xFFFFFFAA,"Um Incendio Foi iniciado no Posto Petrobras, Motivo:Desconhecido.");
}
public FinalizarIncendio)
{
SendClientMessageToAll(0xFFFFFFAA,"Um Incendio Foi Combatido Automaticamente.");
DestroyObject(fogo);
}
public TempoIncendioP()
{
SetTimer("IniciarIncendio", 1800, false);
}
}
}
SetTimer("FinalizarIncendio", 1800, false);
}
}
}
}
PHP код:
if(strcmp("/apagarince", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMembro] != 4 && PlayerInfo[playerid][pLider] != 4)
{
SendClientMessage(playerid,COLOR_GRAD1,"Vocк nгo й dos Samu para Apagar o Incкndio");
return 1;
}
new carid = GetPlayerVehicleID(playerid);
if(!IsAnAmbulanceCar(carid) && GetPlayerWeapon(playerid) != 42)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк nгo estб com o extintor ou no caminhao!.");
return 1;
}
if(!PlayerToPoint(5.0,playerid, 1747.3075,-1014.8307,23.9609)) return SendClientMessage(playerid, -1, "Vocк nгo esta no Posto petrobras ou nгo esta pegando fogo!");
SendClientMessage(playerid, COLOR_GRAD5, "Vocк estб apagando o Incкndio,continue no local para apagar o Incкndio");
DestroyObject(fogo);
}

Ajude-me porfavor
