[AJUDA] fis um codigo ( meu ) mais n ta funfando
#1

pessoal

fis zuma armadilha

ela ta na frente da dp na prassinha

e um filter scripiti

eu vi um negosso desse tentei faser mais n ta funcionando

alguem pode me falar onde ta o erro pra eu mesmo concerta ?

Quote:

#include <a_samp>
#define FILTERSCRIPT2
#if defined FILTERSCRIPT2
new armadilha1;
new armadilha2;
new armadilha3;
new armadilha4;
new Armadilha;

public OnFilterScriptInit()
{
armadilha1 = CreateObject(971, 1483.99035645, -1688.18383789, 6.69180536, 0.00000000, 0.00000000,270.00000000); //object(subwaygate) (1)
armadilha2 = CreateObject(971, 1479.60742188, -1683.69921875, 6.69179153, 0.00000000, 0.00000000,0.00000000); //object(subwaygate) (2)
armadilha3 = CreateObject(971, 1475.35778809, -1688.19116211, 6.59178734, 0.00000000, 0.00000000, 270.00000000); //object(subwaygate) (3)
armadilha4 = CreateObject(971, 1479.76416016, -1692.57788086, 6.56682682, 0.00000000, 0.00000000, 180.00000000); //object(subwaygate) (4)
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);


return 1;
}



public OnFilterScriptExit()
{
return 1;
}

#else
#endif


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/armadilha2", true)==0)
{
MoveObject (armadilha1,1483.99035645,-1688.18383789,6.69180536);
MoveObject (armadilha2,1479.60742188,-1683.69921875,6.69179153);
MoveObject (armadilha3,1475.35778809,-1688.19116211,6.59178734);
MoveObject (armadilha4,1479.76416016,-1692.57788086,6.56682682);
SendClientMessage(playerid, 0x0000000F, "Armadilha desarmada");
return 1;
}
return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Armadilha)
{
MoveObject (armadilha1,1483.99035645, -1688.18383789, 16.566783905029);
MoveObject (armadilha2,1479.60742188, -1683.69921875, 16.566783905029);
MoveObject (armadilha3,1475.35778809, -1688.19116211, 16.566783905029);
MoveObject (armadilha4,1479.76416016, -1692.57788086, 16.566783905029);
return 1;
}
return 0;
}

Reply
#2

Oque realmente vocк quer fazer com esse Filter Scripter, explique qual o 'erro'
Poste os 'erros' tambйm para eu tentar te ajudar .
Reply
#3

pawn Код:
new armadilha[4];
new Pickups[4];
Em vez de Usar Daquele Geito. й Use Assim :

pawn Код:
Pickups[0]
Pickups[1]
Pickups[2]
Pickups[3]
Mesma Coisa com a Armadinha, Nгo й Preciso definir Vбrias Coisas.

Exemplo : https://sampwiki.blast.hk/wiki/MoveObject
Reply
#4

o negosso n da erro

mais quando chego la a armadilha nгo vai pra sima isso que n entendo

Quote:

C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(3 : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(39) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(40) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(41) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(52) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(53) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(54) : warning 202: number of arguments does not match definition
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(55) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Warnings.

Reply
#5

Sгo 5 Parвmetros.

https://sampwiki.blast.hk/wiki/MoveObject

MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);
Reply
#6

Eu ri com seu portuguкs
Reply
#7

VocК quer o que??
Quer que exploda? Que o Objeto Suma?
Explique melhor.
Reply
#8

PHP код:
#include <a_samp>
#define FILTERSCRIPT2
#if defined FILTERSCRIPT2
new kArmadilha];
new 
kAr;
public 
OnFilterScriptInit()
{
   
kArmadilha] = CreateObject9711483.99035645, -1688.183837896.691805360.000000000.00000000,270.00000000 ); //object(subwaygate) (1)
   
kArmadilha] = CreateObject9711479.60742188, -1683.699218756.691791530.000000000.00000000,0.00000000 ); //object(subwaygate) (2)
   
kArmadilha] = CreateObject9711475.35778809, -1688.191162116.591787340.000000000.00000000270.00000000 ); //object(subwaygate) (3)
   
kArmadilha] = CreateObject9711479.76416016, -1692.577880866.566826820.000000000.00000000180.00000000 ); //object(subwaygate) (4)
   
kArm CreatePickup124221480.4371337891, -1687.875854492213.471883773804 );
   return 
true;
}
public 
OnFilterScriptExit() { return true; }
#else
#endif
public OnPlayerCommandTextplayeridcmdtext[] )
{
   if( !
strcmp(cmdtext"/armadilha2"true ) )
   {
      
MoveObjectkArmadilha], 1483.99035645, -1688.183837896.69180536);
      
MoveObjectkArmadilha], 1479.60742188, -1683.699218756.69179153);
      
MoveObjectkArmadilha], 1475.35778809, -1688.191162116.59178734);
      
MoveObjectkArmadilha], 1479.76416016, -1692.577880866.56682682);
      
SendClientMessageplayerid0x0000000F"Armadilha desarmada" );
      return 
true;
   }
   return 
false;
}
public 
OnPlayerPickUpPickupplayeridpickupid )
{
   if( 
pickupid == kArm )
   {
      
MoveObjectkArmadilha], 1483.99035645, -1688.1838378916.566783905029);
      
MoveObjectkArmadilha], 1479.60742188, -1683.6992187516.566783905029);
      
MoveObjectkArmadilha], 1475.35778809, -1688.1911621116.566783905029);
      
MoveObjectkArmadilha], 1479.76416016, -1692.5778808616.566783905029);
      return 
true;
   }
   return 
true;

Reply
#9

Funcionando 100% testado e aprovado pelo Seu Madruga =D
pawn Код:
#include <a_samp>
#define FILTERSCRIPT

new Armadilha[5];

public OnFilterScriptInit()
{
    print("Armadilha Carregada");
    Armadilha[0] = CreatePickup(1242, 2, 1480.3641,-1687.7157,14.0469);
    Armadilha[1] = CreateObject(971, 1483.99035645, -1688.18383789, 6.69180536, 0.00000000, 0.00000000,270.00000000);
    Armadilha[2] = CreateObject(971, 1479.60742188, -1683.69921875, 6.69179153, 0.00000000, 0.00000000,0.00000000);
    Armadilha[3] = CreateObject(971, 1475.35778809, -1688.19116211, 6.59178734, 0.00000000, 0.00000000, 270.00000000);
    Armadilha[4] = CreateObject(971, 1479.76416016, -1692.57788086, 6.56682682, 0.00000000, 0.00000000, 180.00000000);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Armadilha2", true)==0)
    {
        MoveObject (Armadilha[1],1483.99035645, -1688.18383789, 6.69180536,5.0);
        MoveObject (Armadilha[2],1479.60742188, -1683.69921875, 6.69179153,5.0);
        MoveObject (Armadilha[3],1475.35778809, -1688.19116211, 6.59178734,5.0);
        MoveObject (Armadilha[4],1479.76416016, -1692.57788086, 6.56682682,5.0);
        SendClientMessage(playerid, 0x0000000F, "Armadilha desarmada");
        return 1;
    }
    return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Armadilha[0])
    {
        MoveObject (Armadilha[1],1483.99035645, -1688.18383789, 16.566783905029,5.0);
        MoveObject (Armadilha[2],1479.60742188, -1683.69921875, 16.566783905029,5.0);
        MoveObject (Armadilha[3],1475.35778809, -1688.19116211, 16.566783905029,5.0);
        MoveObject (Armadilha[4],1479.76416016, -1692.57788086, 16.566783905029,5.0);
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)