[HELP] Command Bug.
#1

Hey, I added Neon System on my GM, and I added command /neon for turn on or turn off the neon, it's worked when I outside the vehicle, but, when I Inside the vehicle, it's say command not found.
This is the command:
pawn Код:
CMD:neon(playerid, params[])
{
    new vehid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            if(PlayerVehicleInfo[playerid][vehid][pvNeon] >= 1)
            {
                if(Neon[vehid] == 1)
                {
                    UnloadNeon(playerid, vehid);
                    SendClientMessageEx(playerid, COLOR_GREY, "Neon turned off.");
                    Neon[vehid] = 0;
                }
                else
                {
                    LoadNeon(playerid, vehid);
                    SendClientMessageEx(playerid, COLOR_GREY, "Neon turned on.");
                    Neon[vehid] = 1;
                }
            }
            else SendClientMessageEx(playerid, COLOR_GREY, "This vehicle doesn't have neon!");
        }
        else SendClientMessageEx(playerid, COLOR_GREY, "You are not the driver!");
    }
    else SendClientMessageEx(playerid, COLOR_GREY, "You are not inside Vehicle!");
    return 1;
}
Please Help
Reply


Messages In This Thread
[HELP] Command Bug. - by RenovanZ - 07.12.2012, 11:41
Re: [HELP] Command Bug. - by HireMe - 07.12.2012, 14:56
Re: [HELP] Command Bug. - by RenovanZ - 08.12.2012, 04:24
Re: [HELP] Command Bug. - by Threshold - 08.12.2012, 04:55
Re: [HELP] Command Bug. - by RenovanZ - 08.12.2012, 05:26
Re: [HELP] Command Bug. - by RajatPawar - 08.12.2012, 05:48
Re: [HELP] Command Bug. - by RenovanZ - 08.12.2012, 06:06
Re: [HELP] Command Bug. - by Faisal_khan - 08.12.2012, 06:21
Re: [HELP] Command Bug. - by leonardo1434 - 08.12.2012, 06:36
Re: [HELP] Command Bug. - by RenovanZ - 08.12.2012, 06:47

Forum Jump:


Users browsing this thread: 1 Guest(s)