[HELP] Move Object Error!
#1

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-
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

Errors Solved but the object didnt moved
Reply
#5

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.
Reply
#6

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

No Problem, Here to help.

-Mike.
Reply
#8

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..
Reply
#9

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

-Mike.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)