[Pomoc] Tunecar

23. Avg. 2013. Zaključano
412
pregleda
2
postova
FiLiP.99
4
Shot Caller
23. Avg. 2013.
Pozz!! Pravim comandu TUNECAR sa kojom ce moci admini da budze kola i dodaju neonke!!
Detaljan opis problema: Dolaze mi sledeci erori

Dio skripte:
Kod:

CMD:tunecar(playerid, params[])
{
if(PlayerInfo <= 😎 return SendClientMessage(playerid, COLOR_GREY, "Niste u mogucnosti koristiti ovu komandu!!");
{
ShowPlayerDialog(playerid, DIALOG_TUNECAR, DIALOG_STYLE_LIST, "{48E31C}Hard Vision RolePlay {FFFFFF}- {00CED1}Admin Tuning","Neonke","Ugradi","Izadji");
}
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
      if(dialogid == DIALOG_TUNECAR)
{
    if(response)
    {
        if (listitem == 0)
        {
            ShowPlayerDialog(playerid, DIALOG_NEONKE, DIALOG_STYLE_LIST,"Hard Vision RolePlay - Neon upgrades!","Plave neonke\nZute neonke\nZelene neonke\nRoze neonke\nBele neonke\nCrvene neonke\nUkloni neonke","Dodaj","Odbij");
        }
        }
    }
    if(dialogid == DIALOG_NEONKE)
    {
        if(response == 1)
        {
            switch(listitem)
            {
            case 0:
            {
                SetPVarInt(playerid, "HasBlueNeons", 1);//Set there status in a player variable..
                SetPVarInt(playerid, "BlueNeons1", CreateObject(18648,0,0,0,0,0,0));//Set the neon object into a player variable..
                SetPVarInt(playerid, "BlueNeons2", CreateObject(18648,0,0,0,0,0,0));//Set the neon object into a player variable..
                AttachObjectToVehicle(GetPVarInt(playerid, "BlueNeons1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);//Attatch the neon object to the vehicle(Do not change coordinates)..
                AttachObjectToVehicle(GetPVarInt(playerid, "BlueNeons2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);//Attatch the neon object to the vehicle(Do not change coordinates)..
                PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neonke postavljene!");
}
            case 1:
            {
                SetPVarInt(playerid, "HasYellowNeons", 1);//Set there status in a player variable..
                SetPVarInt(playerid, "YellowNeons1", CreateObject(18650,0,0,0,0,0,0));//Set the neon object into a player variable..
                SetPVarInt(playerid, "YellowNeons2", CreateObject(18650,0,0,0,0,0,0));//Set the neon object into a player variable..
                AttachObjectToVehicle(GetPVarInt(playerid, "YellowNeons1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);//Attatch the neon object to the vehicle(Do not change coordinates)..
                AttachObjectToVehicle(GetPVarInt(playerid, "YellowNeons2"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_GREY, "Neonke postavljene!");
            }
            case 2:
            {
                AddGreenNeons(playerid);
                SendClientMessage(playerid, COLOR_GREY, "Neonke postavljene!");
}
            }
Falcony
4
Enforcer
23. Avg. 2013.
Postavi u
 

I daj nam errore

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha