[Ajuda] Bug Neon
#1

O problema eo seguinte galera quando digito /neon funciona dbioa escolho a cor e tals ate ai tudo certo mais quando o carro de alguem explode ou dar respawn o meu neon some.

aki um ex:
pawn Код:
if(listitem == 1) {
                if(NeonAtivo[playerid] == 1) return SendClientMessage(playerid, -1, "{EE3B3B}[INFO]: {FFFFFF}Vocк jб estб usando neon desligue-o.");
                NeonAtivo[playerid] = 1;
                SetPVarInt(playerid, "neon", 1);
                SetPVarInt(playerid, "green", ObjetoNeon[0] = CreateObject(18649,0,0,0,0,0,0));
                SetPVarInt(playerid, "green1", ObjetoNeon[1] = CreateObject(18649,0,0,0,0,0,0));
                AttachObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                SendClientMessage(playerid,COR_VERMELHO,  "{EE3B3B}[INFO]: {FFFFFF}Verde Neon - Neon tem sido acrescentado ao seu veнculo.");
            }

creio que os bugs seja aki..
pawn Код:
public OnVehicleDeath(vehicleid)
{
    DestroyObject(ObjetoNeon[0]);
    DestroyObject(ObjetoNeon[1]);
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    DestroyObject(ObjetoNeon[0]);
    DestroyObject(ObjetoNeon[1]);
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Bug Neon - by Victor_Souz4 - 09.12.2011, 17:42
Re: [BUG]Neon - by [NWD]Jim._.Carrey - 09.12.2011, 18:18
Re: [BUG]Neon - by Victor_Souz4 - 09.12.2011, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)