[Ajuda] XENON
#6

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
pawn Код:
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{

#else
#endif
#pragma tabsize 0


public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/xenon", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Xenons", "Azul\nVermelho\nVerde\nDesligar Xenon", "Selecionar", "Cancelar");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

 if(dialogid == 8899)
    {
        if(response)
        {
            if(listitem == 0)
            {


            //azul
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "xenon", CreateObject(19298,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon1", CreateObject(19298,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon2", CreateObject(19298,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon3", CreateObject(19298,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon1"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon2"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon3"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
             }
            if(listitem == 1)
            {


             //vermelho
                SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "xenon4", CreateObject(19296,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon5", CreateObject(19296,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon6", CreateObject(19296,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon7", CreateObject(19296,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon4"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon5"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon6"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon7"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);

}
            if(listitem == 2)
            {


            //verde
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "xenon8", CreateObject(19297,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon9", CreateObject(19297,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon10", CreateObject(19297,0,0,0,0,0,0));
            SetPVarInt(playerid, "xenon11", CreateObject(19297,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon8"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon9"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon10"), GetPlayerVehicleID(playerid), 0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "xenon11"), GetPlayerVehicleID(playerid),0.0, 3.0, -0.8, 0.0, 0.0, 0.0);
                }
            //remover xenon
            DestroyObject(GetPVarInt(playerid, "xenon"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon1"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon2"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon3"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon4"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon5"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon6"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon7"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon8"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon9"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon10"));
            DeletePVar(playerid, "Status");
            DestroyObject(GetPVarInt(playerid, "xenon11"));
            DeletePVar(playerid, "Status");
}
return 1;
}
pawn Код:
C:\Users\Re\Desktop\neon.pwn(102) : error 030: compound statement not closed at the end of file (started at line 27)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
XENON - by Devasting - 08.04.2014, 21:51
Re: XENON - by PT - 08.04.2014, 21:56
Re: XENON - by Devasting - 08.04.2014, 22:21
Re: XENON - by Devasting - 08.04.2014, 23:17
Re: XENON - by Wellington1999 - 08.04.2014, 23:24
Re: XENON - by Devasting - 09.04.2014, 00:09
Re: XENON - by BielCorpOProgramm - 09.04.2014, 00:13
Re: XENON - by Schocc - 09.04.2014, 00:41
Re: XENON - by Devasting - 09.04.2014, 15:56
Re: XENON - by BielCorpOProgramm - 09.04.2014, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)