Quote:
Originally Posted by zGuigui2068
Deu erro nisso mano olha...
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(59946) : error 017: undefined symbol "CreteObject"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59946) : warning 204: symbol is assigned a value that is never used: "fogo"
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59946 -- 59950) : warning 235: public function lacks forward declaration (symbol "FinalizarIncendio")
C:\Users\gustavo\Desktop\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(59953) : error 017: undefined symbol "fogo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
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); // Erro aqui! linha 51003
return 1;
}
PHP код:
public IniciarIncendio()
{
new fogo = CreteObject(18690,1747.3075,-1014.8307,23.9609,283.5074,0,0,0,0,0,0); // erro aqui 59946
SendClientMessageToAll(0xFFFFFFAA,"Um Incendio Foi iniciado no Posto Petrobras, Motivo:Desconhecido.");
return 1;
}
PHP код:
public FinalizarIncendio()
{
SendClientMessageToAll(0xFFFFFFAA,"Um Incendio Foi Combatido Automaticamente.");
DestroyObject(fogo); //ultimo erro aqui
return 1;
}
Obrigado por ajudar desde ja  se puder me ajuda dnv.
e eu nгo Copiei de ninguem eu tentei criar... e saiu isso 
|
Cara, vocк preconceito com o
CreateObject que vocк fica colocando
CreteObject ?
@EDIT
E como o Artista falou, crie uma variavel global, se vocк nгo sabe apenas vб no topo da GM juntamente com as outras 'NEWS' pra nгo ficar desorganizado e coloca