I need some help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need some help (
/showthread.php?tid=222449)
I need some help -
yadude - 07.02.2011
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
Re: I need some help -
_Tommy - 07.02.2011
Please post here your /open command only, use [pawn] function in order to show it up correctly.
Re: I need some help -
yadude - 07.02.2011
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
Re: I need some help -
alpha500delta - 07.02.2011
Copy the code... It has nothing to do with pawn knowledge lol. Also you should check
this to make gates
Re: I need some help -
yadude - 07.02.2011
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
Re: I need some help -
alpha500delta - 07.02.2011
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;
}
Re: I need some help -
yadude - 07.02.2011
Ok i will try that

i added you on skype