tag mismatch command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: tag mismatch command (
/showthread.php?tid=488859)
tag mismatch command -
DerickClark - 19.01.2014
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.
Trying to fix tag mismatch problem.
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;
}
Re: tag mismatch command -
Sawalha - 19.01.2014
Why do you need the SpawnLocation enum?
EDIT
try this:
pawn Код:
new Float:RandomSpawns[][9] =
Re: tag mismatch command -
iZN - 19.01.2014
Uhm, that's strange, can you tell me on which line you are getting it? Point those lines.
Re: tag mismatch command -
DerickClark - 19.01.2014
Quote:
Originally Posted by Sawalha
Why do you need the SpawnLocation enum?
|
because:
Spawn not facing the right way.
that why.
error come from
pawn Код:
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); // Send the player a message that using "/rescue" costs $200
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerRescued2); // Send the player a message that using "/rescue" costs $200
RewardPlayer(playerid, -100, 0);
}
return 1;
}