11.02.2013, 15:17
I haven't a global variable called "i". This problem is not occur in StartDeatmatch only. Also in OnPlayerSpawn in this:
pawn Code:
if(InGame[playerid] == deathmatch)
{
if(gamemap == 0) //aim_headshot
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
new Float:RandomSpawns[][] =
{
{-2472.0415,1828.5179,14.1092},
{-2440.8843,1678.2205,14.1086}
};
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
}
if(gamemap == 1) //cargoship
{
SetPlayerVirtualWorld(playerid,0);
new Float:RandomSpawns[][] = //3247 but different statement -.-
{
{763.9101,-3307.6133,26.0656,86.8335},
{592.6706,-3305.8057,38.8441,265.7879}
};
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
}
}
Code:
(3247) : error 021: symbol already defined: "RandomSpawns"