31.08.2010, 17:27
It did like you guys said but since I have this on the start of the script after the forwards:
it gives me this warning at the end:
I have the "news" for this:
pawn Код:
new gFlyTimer;
new gFlyTimer2;
Код:
warning 204: symbol is assigned a value that is never used: "gFlyTimer" warning 204: symbol is assigned a value that is never used: "gFlyTimer2"
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!");
}
}

