[Help] Timers and teleports!
#7

It did like you guys said but since I have this on the start of the script after the forwards:

pawn Код:
new gFlyTimer;
new gFlyTimer2;
it gives me this warning at the end:

Код:
warning 204: symbol is assigned a value that is never used: "gFlyTimer"
warning 204: symbol is assigned a value that is never used: "gFlyTimer2"
I have the "news" for this:

pawn Код:
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!");
        }
    }
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)