Error: Same codes in different sections.
#9

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"
Reply


Messages In This Thread
Error: Same codes in different sections. - by Matz - 11.02.2013, 14:03
Re: Error: Same codes in different sections. - by Scenario - 11.02.2013, 14:04
Re: Error: Same codes in different sections. - by Matz - 11.02.2013, 14:12
Re: Error: Same codes in different sections. - by LarzI - 11.02.2013, 14:15
Re: Error: Same codes in different sections. - by Matz - 11.02.2013, 14:33
Re: Error: Same codes in different sections. - by Scenario - 11.02.2013, 14:54
Re: Error: Same codes in different sections. - by Matz - 11.02.2013, 15:03
Re: Error: Same codes in different sections. - by MP2 - 11.02.2013, 15:04
Re: Error: Same codes in different sections. - by Matz - 11.02.2013, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)