Some help plz :) - 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: Some help plz :) (
/showthread.php?tid=110108)
Some help plz :) -
yoennie - 24.11.2009
Hiii sampers
Ive got a question about the function MoveObject because i dont really understand it
i searched for it on wiki i found it but i think im doing it wrong with the coordinates so heres it.
Код:
public OnGameModeInit()
{
CreateObject(2927, 2067.4082, -2515.8733, 50.8578,);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/startlift", true) == 0)
{
MoveObject(2927, 2067.6858, -2515.8843, 15.5967 10, 0.5);
return 1;
}
return 0;
}
you can change it to explain me about it thanks already
!
Re: Some help plz :) -
saiberfun - 24.11.2009
Quote:
Originally Posted by yoennie
Hiii sampers
Ive got a question about the function MoveObject because i dont really understand it
i searched for it on wiki i found it but i think im doing it wrong with the coordinates so heres it.
Код:
public OnGameModeInit()
{
CreateObject(2927, 2067.4082, -2515.8733, 50.8578,);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/startlift", true) == 0)
{
MoveObject(2927, 2067.6858, -2515.8843, 15.5967 10, 0.5);
return 1;
}
return 0;
}
you can change it to explain me about it thanks already !
|
i don't see anything wrong
tho you could use
Re: Some help plz :) -
miokie - 24.11.2009
You have the define the object.
at the top of yoru script just below the #includes add:
pawn Код:
public OnGameModeInit()
{
 Lift = CreateObject(2927, 2067.4082, -2515.8733, 50.8578,); // Im not sure if this is right, I'm sure there is more parameters other than the Objectid,x,y,z... How did you create this object?
 return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
 if(strcmp(cmdtext, "/startlift", true) == 0)
 {
  MoveObject(Lift, 2067.6858, -2515.8843, 15.5967 10, 0.5);
  return 1;
 }
 return 0;
}
Re: Some help plz :) -
yoennie - 25.11.2009
Yes almost have it but now it says it doesnt have the right number of arguments
public OnGameModeInit()
{
Lift = CreateObject(2927, 2067.4885253906, -2515.8937988281, 14.338908195496, 90, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
MoveObject(Lift, 2067.48828125, -2515.8935546875, 49.599998474121, 90, 10, 0.5);
return 1;
}
return 0;
}
the red line is the error line