[Help] Timers and teleports!
#1

Ok so I have this on top of my script:

Код:
forward FlyTimer(playerid);
forward FlyTimer2(playerid);
A bit more down where the other commands are I have this:

Код:
new gFlyTimer;
new gFlyTimer2;


public FlyTimer(playerid)
{
     SetPlayerPos( playerid, 661.2751,-2402.9463,107.1575 ); //This is where you will teleport AFTER 10 seconds
     GameTextForPlayer(playerid, "~g~Welcome to Italy! ~b~Have fun!", 5000, 3);
}


public FlyTimer2(playerid)
{
     SetPlayerPos( playerid, 325.7861,3234.6045,58.5038 ); //This is where you will teleport AFTER 10 seconds
     GameTextForPlayer(playerid, "~g~Welcome back to Fort Carson!", 5000, 3);
}


//--------------------------------------------------------------------------

//command
if( !strcmp( cmdtext, "/flytoitaly", true ))
	{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 325.7861,3234.6045,58.5038))
		{
    	SetPlayerPos( playerid, 1.61,34.74,1199.3 ); //This is where you go when typing the command
    	SetPlayerInterior( playerid, 1 );
    	GivePlayerMoney( playerid, -2000 )
    	GameTextForPlayer(playerid, "~g~You will arrive at Italy in 60 seconds", 5000, 3);
    	gFlyTimer = SetTimerEx( "FlyTimer", 60000, false, "i", playerid );
    	return true;
		}
	else
		{
		SendClientMessage(playerid,COLOR_GREY, "You are not at Fort Carson airport!");
		}
	}
	
if( !strcmp( cmdtext, "/flytofc", true ))
	{
	if(IsPlayerInRangeOfPoint(playerid, 2.0, 661.2751,-2402.9463,107.1575))
		{
    	SetPlayerPos( playerid, 1.61,34.74,1199.3 ); //This is where you go when typing the command
    	SetPlayerInterior( playerid, 1 );
    	GivePlayerMoney( playerid, -2000 )
    	GameTextForPlayer(playerid, "~g~You will arrive at Fort Carson in 60 seconds", 5000, 3);
    	gFlyTimer2 = SetTimerEx( "FlyTimer2", 60000, false, "i", playerid );
    	return true;
		}
	else
		{
		SendClientMessage(playerid,COLOR_GREY,"You are not at Italy's airport!");
		}
	}
And in the end I have this:

Код:
error 004: function "FlyTimer" is not implemented
 error 029: invalid expression, assumed zero
 error 004: function "FlyTimer2" is not implemented
 error 001: expected token: ";", but found "-identifier-"
 error 001: expected token: ";", but found "-identifier-"
Reply


Messages In This Thread
[Help] Timers and teleports! - by BlacK_PT - 31.08.2010, 16:46
Re: [Help] Timers and teleports! - by CyNiC - 31.08.2010, 16:52
Re: [Help] Timers and teleports! - by BlacK_PT - 31.08.2010, 17:03
Re: [Help] Timers and teleports! - by Paladin - 31.08.2010, 17:07
Re: [Help] Timers and teleports! - by BlacK_PT - 31.08.2010, 17:11
Re: [Help] Timers and teleports! - by Mikkel_Pedersen - 31.08.2010, 17:12
Re: [Help] Timers and teleports! - by BlacK_PT - 31.08.2010, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)