[Pedido] Faзa um fs com essa include pra mim? (Nгo entendo disso O_O)
#1

Bom galera como sou nb pra kct em pawno (nao me considero um nb em pawno mais acho que se eu n sei faze isso que estou pedindo devo ser nb mesmo...) eu gostaria que alguem fizece um fs com essa include de neon:

https://sampforum.blast.hk/showthread.php?tid=262451

tipo eu gostaria de um fs que tivece o menu do neon em box e tbm o cmd do /neon para abri o menu e a opзг ode tirar os neons no proprio box

tambйm queria se algue mpoder,fazer a sirene da policia em um outro fs porque vo usa a sirene sу pros cop entao se alguem pudece criar um fs com as sirene tipo /sirene ai aparece a sirene ai /rsirene pra retira a sirenes
Reply
#2

Tem um no prуprio tуpico:

pawn Код:
new Menu:NEON_MENU;

public OnGameModeExit()
{
    NEON_MENU = CreateMenu("Neons", 1, 50.0, 180.0, 130.0, 130.0);
    AddMenuItem(NEON_MENU, 0, "Branco");
    AddMenuItem(NEON_MENU, 0, "Azul");
    AddMenuItem(NEON_MENU, 0, "Verde");
    AddMenuItem(NEON_MENU, 0, "Rosa");
    AddMenuItem(NEON_MENU, 0, "Vermelho");
    AddMenuItem(NEON_MENU, 0, "Amarelo");
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    new Menu:Current = GetPlayerMenu(playerid);
    if(Current == NEON_MENU)
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo.");
        switch(row)
        {
            case 0:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
            }
            case 1:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
            }
            case 2:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
            }
            case 3:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
            }
            case 4:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
            }
            case 5:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
            }
        }
    }
    return 1;
}

CMD:neon(playerid, params[])
    return ShowMenuForPlayer(NEON_MENU, playerid);
Caso queira algo diferente, envie uma PM para o dono do tуpico e peзa ajuda, ou entгo espere ele postar aqui.
Reply
#3

sim mais tipo eu queria retirar a sirene e colocar num otro fs D:
Reply
#4

Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
sim mais tipo eu queria retirar a sirene e colocar num otro fs D:
Ai fica dificil, aguarde o KingstoN* postar aqui.
Reply
#5

ok :P tipo nao tem como vc pegar e substituir o objeto do neon pela sirene? :S pq tipo se o fs ja tem a sirene n da pra coloca a sirene num otro fs separado :S
Reply
#6

Leia a include e entenda e tente usa-la no seu fs.
Reply
#7

Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
Bom galera como sou nb pra kct em pawno (nao me considero um nb em pawno mais acho que se eu n sei faze isso que estou pedindo devo ser nb mesmo...) eu gostaria que alguem fizece um fs com essa include de neon:

https://sampforum.blast.hk/showthread.php?tid=262451

tipo eu gostaria de um fs que tivece o menu do neon em box e tbm o cmd do /neon para abri o menu e a opзг ode tirar os neons no proprio box
FS com comando /neon pra colocar/retirar neon dos veнculos:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <nLibrary>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 6767:
        {
            if(!response) return 1;
            switch(listitem)
            {
                case 0: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
                case 1: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
                case 2: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
                case 3: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
                case 4: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
                case 5: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
                case 6:{if(IsVehicleUsingNeon(GetPlayerVehicleID(playerid))) RemoveNeonFromVehicle(GetPlayerVehicleID(playerid));}
            }
        }
    }
    return 1;
}

CMD:neon(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    ShowPlayerDialog(playerid, 6767, DIALOG_STYLE_LIST, "Neon Lista", "Branco\nVermelho\nVerde\nAmarelo\nRoxo\nAzul\nRemover", "Instalar", "Cancelar");
    return 1;
}
Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
tambйm queria se algue mpoder,fazer a sirene da policia em um outro fs porque vo usa a sirene sу pros cop entao se alguem pudece criar um fs com as sirene tipo /sirene ai aparece a sirene ai /rsirene pra retira a sirenes
Comandos para adicionar/remover sirene.
pawn Код:
CMD:sirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_POLICE);
    return 1;
}

CMD:rsirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(!IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    RemoveBuzzerFromVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Reply
#8

Quote:
Originally Posted by KingstoN*
Посмотреть сообщение
FS com comando /neon pra colocar/retirar neon dos veнculos:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <nLibrary>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 6767:
        {
            if(!response) return 1;
            switch(listitem)
            {
                case 0: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
                case 1: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
                case 2: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
                case 3: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
                case 4: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
                case 5: AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
                case 6:{if(IsVehicleUsingNeon(GetPlayerVehicleID(playerid))) RemoveNeonFromVehicle(GetPlayerVehicleID(playerid));}
            }
        }
    }
    return 1;
}

CMD:neon(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    ShowPlayerDialog(playerid, 6767, DIALOG_STYLE_LIST, "Neon Lista", "Branco\nVermelho\nVerde\nAmarelo\nRoxo\nAzul\nRemover", "Instalar", "Cancelar");
    return 1;
}

Comandos para adicionar/remover sirene.
pawn Код:
CMD:sirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_POLICE);
    return 1;
}

CMD:rsirene(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(!IsVehicleUsingBuzzer(GetPlayerVehicleID(playerid))) return 1;
    RemoveBuzzerFromVehicle(GetPlayerVehicleID(playerid));
    return 1;
}
Код:
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(151) : warning 217: loose indentation
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(154) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
fail e olha q nem tem linha 151 nem 154 Lol
Reply
#9

Quote:
Originally Posted by Los
Посмотреть сообщение
Tem um no prуprio tуpico:

pawn Код:
new Menu:NEON_MENU;

public OnGameModeExit()
{
    NEON_MENU = CreateMenu("Neons", 1, 50.0, 180.0, 130.0, 130.0);
    AddMenuItem(NEON_MENU, 0, "Branco");
    AddMenuItem(NEON_MENU, 0, "Azul");
    AddMenuItem(NEON_MENU, 0, "Verde");
    AddMenuItem(NEON_MENU, 0, "Rosa");
    AddMenuItem(NEON_MENU, 0, "Vermelho");
    AddMenuItem(NEON_MENU, 0, "Amarelo");
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    new Menu:Current = GetPlayerMenu(playerid);
    if(Current == NEON_MENU)
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo.");
        switch(row)
        {
            case 0:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_WHITE);
            }
            case 1:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_BLUE);
            }
            case 2:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_GREEN);
            }
            case 3:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_PINK);
            }
            case 4:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_RED);
            }
            case 5:
            {
                AttachNeonToVehicle(GetPlayerVehicleID(playerid), NEON_YELLOW);
            }
        }
    }
    return 1;
}

CMD:neon(playerid, params[])
    return ShowMenuForPlayer(NEON_MENU, playerid);
Caso queira algo diferente, envie uma PM para o dono do tуpico e peзa ajuda, ou entгo espere ele postar aqui.
Код:
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2662) : error 004: function "SaveAdminLideres" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2667) : error 004: function "OnPropUpdate" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2668) : error 004: function "SaveCK" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2669) : error 004: function "SaveIRC" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2670) : error 004: function "SavePapers" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2671) : error 004: function "SalvarTerritorio" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2672) : error 004: function "SaveBoxer" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2673) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2674) : error 004: function "SaveVip" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2675) : error 004: function "LoadAdminLideres" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2676) : error 004: function "LoadCar" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2677) : error 004: function "LoadVip" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4228) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4257) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4374) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4380) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4407) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4413) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4433) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4469) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4485) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4491) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4497) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4503) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4509) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4515) : error 004: function "OnPlayerCommandText" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
WHOHOOO

geralmente ele da todos esses erros quando й sу um probleminha de nada ele compromete nessa merda toda o.O
Reply
#10

Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
Код:
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(151) : warning 217: loose indentation
C:\Documents and Settings\Tiago\Desktop\Desktop 1 burn\Servidor\pawno\include\nLibrary.inc(154) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
fail e olha q nem tem linha 151 nem 154 Lol

Isso й warning de identaзгo, e nгo й no seu script, й na include, abra ela, procure as linhas e idente-as.


Quote:
Originally Posted by Sonic Hero
Посмотреть сообщение
Код:
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2662) : error 004: function "SaveAdminLideres" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2667) : error 004: function "OnPropUpdate" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2668) : error 004: function "SaveCK" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2669) : error 004: function "SaveIRC" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2670) : error 004: function "SavePapers" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2671) : error 004: function "SalvarTerritorio" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2672) : error 004: function "SaveBoxer" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2673) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2674) : error 004: function "SaveVip" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2675) : error 004: function "LoadAdminLideres" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2676) : error 004: function "LoadCar" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(2677) : error 004: function "LoadVip" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4228) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4257) : error 017: undefined symbol "GivePlayerMoneyEx"
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4374) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4380) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4407) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4413) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4433) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4469) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4485) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4491) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4497) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4503) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4509) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\Tiago\Desktop\addneon.pwn(4515) : error 004: function "OnPlayerCommandText" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
WHOHOOO

geralmente ele da todos esses erros quando й sу um probleminha de nada ele compromete nessa merda toda o.O
Isso й falta de chaves, procure em seu script falta de chaves, returns, etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)