Gate Filterscript
#1

Can someone help me by telling me whats wrong with this
971,2908.698974,2088.360351,5.949101,0.000000,0.00 0000,0.201737, this is the gate open
971,2908.698974,2088.360351,12.570116,0.000000,0.0 00000,0.201737, this is the gate closed



Код:
#include <a_samp>
new vgate;

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Blank Filterscript by your name here");
        print("--------------------------------------\n");
        vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed
        return 1;
}

 if(strcmp(cmdtext,"/ovgate", true) == 0)
  {
   MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000);
     return 1;
     }
  }
}

 if(strcmp(cmdtext,"/cvgate", true) == 0)
  {
   MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000);
     return 1;
     }
  }
}
Reply
#2

Updated it
Reply
#3

Well, in both of them you put the same coordinates, except for the Z
Reply
#4

yes because the gate only moves up and down
Reply
#5

Quote:
Originally Posted by Jack-
Посмотреть сообщение
yes because the gate only moves up and down
And what's your problem then?
Reply
#6

It doesnt compile i get this error for lines 13 16 21 24
error 010: invalid function or declaration
Reply
#7

pawn Код:
#include <a_samp>

new vgate;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/ovgate", true) == 0)
    {
        MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000);
        return 1;
    }
    if(strcmp(cmdtext,"/cvgate", true) == 0)
    {
        MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000);
        return 1;
    }
    return 0;
}
Reply
#8

Quote:
Originally Posted by Jack-
Посмотреть сообщение
It doesnt compile i get this error for lines 13 16 21 24
error 010: invalid function or declaration
pawn Код:
#include <a_samp>
new vgate;

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Blank Filterscript by your name here");
        print("--------------------------------------\n");
        vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed
        return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmdtext,"/ovgate", true) == 0)
    {
        MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000);
        return 1;
    }
    if(strcmp(cmdtext,"/cvgate", true) == 0)
    {
       MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000);
       return 1;
     }
     return 0;
}
Reply
#9

does anyone know what this means

C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 029: invalid expression, assumed zero
C:\Users\Jack\Documents\Ascendence Documents\GTA SAMP SERVER\sdoor.pwn(10) : error 035: argument type mismatch (argument
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#10

Post line 10.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)