I need some help
#1

Hey i am new to this scripting thing and i am trying to make a gate that moves (/open to open the gate and /close to close ). I made the gate and it worked and every thing was awsome so i moved on learning how to do stuff in scripting now i come back to /open my gate and all i get is unknown command i copyed and past the little bit of code and pasted it on a new script and i still get the same error could some one look at my script and help me please .....




There is a download link below of my script thing please help me thanks again
Reply
#2

Please post here your /open command only, use [pawn] function in order to show it up correctly.
Reply
#3

Can i ask how i can do this ^^ sorry i started this hole thing a few days ago i looked in the read me and it is not there or the wiki :P
Reply
#4

Copy the code... It has nothing to do with pawn knowledge lol. Also you should check this to make gates
Reply
#5

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/open", true) == 0) { // Edit the /eup to your elevator command.
{
MoveObject(LSPDGate,1592.5999755859,-1638.0615234375,12.37318611145,2.00); // Put your cords in here
SendClientMessage(playerid, 0xFFFFFFFF, "The gate is opening...."); // You dont alwas have to put this in, delete if wanted.
IsPlayerInRangeOfPoint(LSPDGate,5,1584.7800292969,-1638.0615234375,12.37318611145);
}
return 1;
}


I did 3 tut on makeing a moving gate and only the 3rd one worked every other one went to some random place and did not stop lol but i dont know why it dont work now this is the like code thing
Reply
#6

You should try like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/open", true) == 0) { // Edit the /eup to your elevator command.
          {
              if IsPlayerInRangeOfPoint(LSPDGate,5,1584.7800292969,-1638.0615234375,12.37318611145);
              {
                   MoveObject(LSPDGate,1592.5999755859,-1638.0615234375,12.37318611145,2.00); // Put your  cords in here
                    SendClientMessage(playerid, 0xFFFFFFFF, "The gate is opening...."); // You dont alwas have to put this in, delete if wanted.
               }
                else
                {
                      SendClientMessage(playerid, 0xFFFF00FF, "YOU PLOX YOUR NOT IN RANGE OF THE GATE!!!!!!");

                }
          }
          return 1;
}
Reply
#7

Ok i will try that i added you on skype
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)