SA-MP Forums Archive
[HELP] Move Object Error! - 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] Move Object Error! (/showthread.php?tid=98380)



[HELP] Move Object Error! - TraNe15 - 20.09.2009

i'm having problem about moving object.. Please Help me..

Errors

Код:
I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\KillBox_Dm.pwn(100) : warning 204: symbol is assigned a value that is never used: "obj"
I:\Documents and Settings\OrKo\Desktop\Gta Sa-Mp Server\OrKo's Server\gamemodes\KillBox_Dm.pwn(362) : error 017: undefined symbol "obj"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

1 Error.
Lines
Код:
forward Asansor();

public OnGameModeInit()
{
SetTimer("Asansor", 10000, 0); //10 saniye

new obj;
obj = CreateObject(16500, 2977.427490, -1727.917725, 10.233408, 179.5182, 90.1369, 69.6144);
}

public Asansor()
{
MoveObject(obj, 2977, -1728, 58, 2.00);
return 1;
}
How Can i solve this errors.. Thank You


-TraNe15-



Re: [HELP] Move Object Error! - » sTeVe - 20.09.2009

pawn Код:
forward Asansor();

public OnGameModeInit()
{
  SetTimer("Asansor", 10000, 0); //10 saniye
}

public Asansor()
{
  new obj;
  obj = CreateObject(16500, 2977.427490, -1727.917725, 10.233408, 179.5182, 90.1369, 69.6144);
  MoveObject(obj, 2977, -1728, 58, 2.00);
return 1;
}



Re: [HELP] Move Object Error! - [NYRP]Mike. - 20.09.2009

pawn Код:
public Asansor()
{
MoveObject(obj, 2977, -1728, 58, 2.00); // Add full co-ords
return 1;
}
& add new obj; to the top of your Script.

-Mike.


Re: [HELP] Move Object Error! - TraNe15 - 20.09.2009

Errors Solved but the object didnt moved


Re: [HELP] Move Object Error! - [NYRP]Mike. - 20.09.2009

Hmmm'

pawn Код:
forward Asansor();

public OnGameModeInit()
{  
  obj = CreateObject(16500, 2977.427490, -1727.917725, 10.233408, 179.5182, 90.1369, 69.6144);
}

public OnPlayerConnect()
{
  SetTimer("Asansor", 10000, 0); //10 saniye
}
public Asansor()
{
  MoveObject(obj, 2977, -1728, 58, 2.00);
return 1;
}
-Mike.


Re: [HELP] Move Object Error! - TraNe15 - 20.09.2009

O_o Thanks Bro. you really helped me it's working perfectly!


Re: [HELP] Move Object Error! - [NYRP]Mike. - 20.09.2009

No Problem, Here to help.

-Mike.


Re: [HELP] Move Object Error! - TraNe15 - 20.09.2009

And 1 more question How can i move like; go up and down.. this script is just going up.. I think but i counldn't found..


Re: [HELP] Move Object Error! - [NYRP]Mike. - 20.09.2009

Ehm, you mean like to close the gate?, I didnt understand that..

-Mike.


Re: [HELP] Move Object Error! - TraNe15 - 20.09.2009

yea it will go up and down always.. like automatic elevator