help with an command. - 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: help with an command. (
/showthread.php?tid=117751)
help with an command. -
WardenCS - 01.01.2010
Hey,i have command "opengate" but it wont work,
the problem is the object wont move and it says %s takes his/her remote and opens Gothic hq gate.
and then says SERVER:unknown command
heres the lines from it
pawn Код:
if(IsAGothic(playerid))
{
if (PlayerToPoint(15, playerid,1084.9635009766, -1886.8415527344, 14.262490272522))
{
MoveObject(gothicgate,1094.5635009766, -1886.8415527344, 14.262490272522);
SetTimer("closegate8", 7000, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes his/her remote and opens Gothic hq gate.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else { SendClientMessage(playerid, COLOR_GREY,"Destination is too far."); }
}
Re: help with an command. -
MerLow - 01.01.2010
The command must return 1 and MoveObject() need a parameter speed, like it:
MoveObject(gothicgate, 1094.5635009766, -1886.8415527344, 14.262490272522,
3.0);
Re: help with an command. -
DeathOnaStick - 01.01.2010
pawn Код:
MoveObject(gothicgate,1094.5635009766, -1886.8415527344, 14.262490272522);
This line is wrong. Read the tuturial of "MoveObject" on wiki, i guess that this will solve the prob.
Cheers.
Re: help with an command. -
WardenCS - 01.01.2010
oh thanks

it works now :P