Timer Help
#1

Hey guys,
I add this ferry timer for a test but when i go to the place the game freezes and then i have to terminate via task manager. Please point out the problems.
Thank You,
Code:
Код:
#include <a_samp>
new obj1;
new obj2;
new obj3;

public OnFilterScriptInit()
{
	obj1 = CreateObject(300,1,1,1,1,1,1,100);
	obj2 = CreateObject(300,1,1,1,1,1,1,100);
	obj3 = CreateObject(300,1,1,1,1,1,1,100);
	
	SetTimer("FerryStart", 120000, true);//Timer that goes every 2 mins
	return 1;
}
forward FerryStart();
public FerryStart()
{
	MoveObject(obj1,2,2,2,3.0,2,2,2);
	MoveObject(obj2,2,2,2,3.0,2,2,2);
	MoveObject(obj3,2,2,2,3.0,2,2,2);
	SetTimer("FerryBack", 1200000, true);//Timer that goes every 2 mins
	return 1;
}

forward FerryBack();
public FerryBack()
{
	MoveObject(obj1,1,1,1,3.0,1,1,1);
	MoveObject(obj2,1,1,1,3.0,1,1,1);
	MoveObject(obj3,1,1,1,3.0,1,1,1);
	return 1;
}
Reply
#2

I suggest using streamer plugin, it may work
Reply
#3

I don't think 300 is a valid object model.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)