11.02.2013, 14:03
They are in different sections but it says already defined. What is wrong with it?
Code:
(6577) : error 021: symbol already defined: "i"
pawn Code:
StartDeathmatch()
{
if(gamemap == 0) //aim_headshot
{
Load_aim_headshot(); //Load map
for(new i=0;i<MAX_PLAYERS;i++)
{
InGame[i] = deathmatch;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
new Float:RandomAimSpawns[][] =
{
{-2472.0415,1828.5179,14.1092},
{-2440.8843,1678.2205,14.1086}
};
new Random = random(sizeof(RandomAimSpawns));
SetPlayerPos(i, RandomAimSpawns[Random][0], RandomAimSpawns[Random][1], RandomAimSpawns[Random][2]);
}
}
if(gamemap == 1) //cargoship
{
Load_cargoship(); //Load map
for(new i=0;i<MAX_PLAYERS;i++) // 6577
{
InGame[i] = deathmatch;
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
new Float:RandomCargoSpawns[][] =
{
{763.9101,-3307.6133,26.0656,86.8335},
{718.1553,-3315.2761,19.9088,357.3447},
{592.6706,-3305.8057,38.8441,265.7879}
};
new Random = random(sizeof(RandomCargoSpawns));
SetPlayerPos(i, RandomCargoSpawns[Random][0], RandomCargoSpawns[Random][1], RandomCargoSpawns[Random][2]);
}
}
}