(318) : warning 213: tag mismatch
(318) : warning 213: tag mismatch
(318) : warning 213: tag mismatch
(319) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.
new rand = random(sizeof(TruckerSpawn));
SetPlayerPos(playerid, TruckerSpawn[rand][0], TruckerSpawn[rand][1], TruckerSpawn[rand][2]);
SetPlayerFacingAngle(playerid, TruckerSpawn[rand][3]);
new Float:TruckerSpawn[][4]
{
{1002.5, 5434.2, 100.3, 90.2},
{5662.3, 1048.5, 2056.2, 144.5},
//Etc...
}
enum SpawnLocation
{
Float:SpawnX,
Float:SpawnY,
Float:SpawnZ,
Float:SpawnAngle
}
new TruckerSpawn[][SpawnLocation] =
{
// Positions, (X, Y, Z and Facing Angle)
{-1278.0699,2709.5935,50.2663,299.5070}
};
new rand = random(sizeof(TruckerSpawn)); SetPlayerPos(playerid, TruckerSpawn[rand][SpawnX], TruckerSpawn[rand][SpawnY], TruckerSpawn[rand][SpawnZ]); SetPlayerFacingAngle(playerid, TruckerSpawn[rand][SpawnAngle]);
Try this:
Код:
new rand = random(sizeof(TruckerSpawn)); SetPlayerPos(playerid, TruckerSpawn[rand][SpawnX], TruckerSpawn[rand][SpawnY], TruckerSpawn[rand][SpawnZ]); SetPlayerFacingAngle(playerid, TruckerSpawn[rand][SpawnAngle]); |
Nothing ... I got it wrong, I'm happy to have helped even more
|