[Ajuda] Ajuda Filterscript
#1

Pessoal me digam o que estб errado nesse filterscript

Код:
#include <a_samp>
#include <F_Menu>
#define Dialog 1000

new Tunados;
new Tuning;

// =============================================================================
public OnFilterScriptInit()
{
        Tunados = F_CreateMenu("Tunados", 50.0, 120.0, 300.0);
        F_AddMenuItem(Tunados, "Elegy");
        F_AddMenuItem(Tunados, "Sultan");
        F_AddMenuItem(Tunados, "Jester");
        F_AddMenuItem(Tunados, "Uranus");
        F_SetMenuTitleBoxColor(Tunados, 0x00009999);
        F_SetMenuItemBoxColor(Tunados, 0x0000CC99);
        F_SetMenuSelectedItemBoxColor(Tunados, 0x0000FF99);
        F_SetMenuTitleBgColor(Tunados, 0xFFFFFF99);
        F_SetMenuItemBgColor(Tunados, 0xFFFFFF99);
        F_SetMenuSelectedItemBgColor(Tunados, 0xFFFFFF99);
        F_SetMenuTitleTextColor(Tunados, 0x00000099);
        F_SetMenuItemTextColor(Tunados, 0x00000099);
        F_SetMenuSelectedItemTextColor(Tunados, 0x00000099);
}

// =============================================================================
public OnFilterScriptExit()
{
    print("FilterScript Desligado");
    return 1;
}
// =============================================================================
public OnPlayerConnect(playerid)
{

    return 1;
}
// =============================================================================
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(vehicleid == Tuning)
    {
        DestroyVehicle(Tuning);
    }
    return true;
}
// =============================================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
        if(!strcmp(cmdtext,"/Tunados", true))
        {
        F_ShowMenuForPlayer(Tunados, playerid);
                TogglePlayerControllable(playerid, false);
        return 1;
        }
        return 0;
}
// =============================================================================
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1000)
    {
        if(!response)
            return true;
        else
        {
            switch (listitem)
            {
                case 0:
                {
                    new Float:P[3];
                    new string[150];
                    new pNome[MAX_PLAYER_NAME];
                    GetPlayerPos(playerid, P[0], P[1], P[2]);
                    Tuning = CreateVehicle(562, P[0], P[1], P[2], 40.5183, 59,59, -1);
                    GetPlayerName(playerid, pNome, sizeof(pNome));
                    format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Elegy", pNome);
                    SendClientMessageToAll(-1, string);
                    AddVehicleComponent(Tuning, 1010);
                    AddVehicleComponent(Tuning, 1037);
                    AddVehicleComponent(Tuning, 1036);
                    AddVehicleComponent(Tuning, 1035);
                    AddVehicleComponent(Tuning, 1149);
                    AddVehicleComponent(Tuning, 1147);
                    ChangeVehiclePaintjob(Tuning, 2);
                    PutPlayerInVehicle(playerid, Tuning, 0);
                }
                case 1:
                {
                    new Float:P[3];
                    new string[150];
                    new pNome[MAX_PLAYER_NAME];
                    GetPlayerPos(playerid, P[0], P[1], P[2]);
                    Tuning = CreateVehicle(560, P[0], P[1], P[2], 40.5183, 59,59, -1);
                    GetPlayerName(playerid, pNome, sizeof(pNome));
                    format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Sultan", pNome);
                    SendClientMessageToAll(-1, string);
                    AddVehicleComponent(Tuning, 1026);
                    AddVehicleComponent(Tuning, 1028);
                    AddVehicleComponent(Tuning, 1010);
                    AddVehicleComponent(Tuning, 1030);
                    AddVehicleComponent(Tuning, 1032);
                    AddVehicleComponent(Tuning, 1139);
                    AddVehicleComponent(Tuning, 1140);
                    ChangeVehiclePaintjob(Tuning, 1);
                    PutPlayerInVehicle(playerid, Tuning, 0);
                }
                case 2:
                {
                    new Float:P[3];
                    new string[150];
                    new pNome[MAX_PLAYER_NAME];
                    GetPlayerPos(playerid, P[0], P[1], P[2]);
                    Tuning = CreateVehicle(559, P[0], P[1], P[2], 40.5183, 59,59, -1);
                    GetPlayerName(playerid, pNome, sizeof(pNome));
                    format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Jester", pNome);
                    SendClientMessageToAll(-1, string);
                    AddVehicleComponent(Tuning, 1158);
                    AddVehicleComponent(Tuning, 1010);
                    AddVehicleComponent(Tuning, 1159);
                    AddVehicleComponent(Tuning, 1160);
                    AddVehicleComponent(Tuning, 1162);
                    AddVehicleComponent(Tuning, 1068);
                    AddVehicleComponent(Tuning, 1066);
                    ChangeVehiclePaintjob(Tuning, 2);
                    PutPlayerInVehicle(playerid, Tuning, 0);
                }
                case 3:
                {
                    new Float:P[3];
                    new string[150];
                    new pNome[MAX_PLAYER_NAME];
                    GetPlayerPos(playerid, P[0], P[1], P[2]);
                    Tuning = CreateVehicle(558, P[0], P[1], P[2], 40.5183, 59,59, -1);
                    GetPlayerName(playerid, pNome, sizeof(pNome));
                    format(string, sizeof(string), "{FC0000}%s {FFFFFF}Acabou de comprar um {FC0000}carro {FFFFFF}, nome do carro: {FC0000}Uranus", pNome);
                    SendClientMessageToAll(-1, string);
                    AddVehicleComponent(Tuning, 1088);
                    AddVehicleComponent(Tuning, 1089);
                    AddVehicleComponent(Tuning, 1010);
                    AddVehicleComponent(Tuning, 1090);
                    AddVehicleComponent(Tuning, 1092);
                    AddVehicleComponent(Tuning, 1093);
                    AddVehicleComponent(Tuning, 1066);
                    AddVehicleComponent(Tuning, 1165);
                    AddVehicleComponent(Tuning, 1168);
                    AddVehicleComponent(Tuning, 1164);
                    ChangeVehiclePaintjob(Tuning, 1);
                    PutPlayerInVehicle(playerid, Tuning, 0);
                }
            }
        }
        return 1;
    }
    return 1;
}
Reply
#2

Qual erro que aparece
Reply
#3

Quote:
Originally Posted by AlucardSnow
Посмотреть сообщение
Qual erro que aparece
O menu nao seleciona os objetos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)