19.01.2014, 15:12
pawn Код:
(3979) : warning 213: tag mismatch
(3979) : warning 213: tag mismatch
(3979) : warning 213: tag mismatch
(3980) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
pawn Код:
enum SpawnLocation
{
Float:SpawnX,
Float:SpawnY,
Float:SpawnZ,
Float:SpawnAngle
}
new RandomSpawns[][SpawnLocation] =
{
{-525.0, -502.0, 26.0, 0.0}, // Fallen Tree Depot
{-74.7, -1137.5, 4.5, 0.0}, // Flint Trucking Depot
{1457.0, 975.5, 11.0, 0.0}, // LVA Freight Depot
{-2136.0, -247.5, 36.5, 270.0}, // Doherty Depot
{1766.5, -2040.7, 14.0, 270.0}, // El Corona Depot
{-546.0, 2594.0, 54.0, 270.0}, // Las Payasdas Depot
{332.0, 900.0, 25.0, 205.0}, // Quarry Top
{-1575.0, -2724.0, 49.0, 146.0} // Shady Creek Depot
};
CMD:testingrescue(playerid, params[])
{
if (APlayerData[playerid][PlayerClass] == TEAM_TRUCKER)
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerRescued);
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerRescued2);
RewardPlayer(playerid, -100, 0);
}
return 1;
}