[Tutorial] Efficient Multiple Spawning System
#16

You forgot a semi at the end of the curly brace and a = at the beginning of your Spawns Array.

The correct code should be
pawn Code:
new Float:Spawns[][4] =
{//101
    {-238.4964,2608.2761,62.7135,2.8976},
    {-222.8692,2608.7708,62.7162,360.0000},
    {-208.2713,2608.9612,62.7135,0.4203},
    {-309.0230,2681.0723,62.6375,90.4226},
    {-309.0230,2681.0723,62.6375,90.4226}//Base 1
   
    {-1402.5712,2641.9802,55.6993,85.5085},//108
    {-1453.7939,2654.7534,55.8459,2.3052},
    {-1562.8668,2693.7920,55.7868,176.0593},
    {-1514.3767,2535.9150,55.7019,357.5095},
    {-1529.4465,2639.0063,55.8478,92.3112}//BASE 2
};
new SpawnCount[2] = 0;

SetSpawnInformation(spawn_region)
{
    new i;
    i = (MAX_SPAWNS_PER_REGION * spawn_region) + SpawnCount[spawn_region];
    SpawnCount[spawn_region]++;
    if(SpawnCount[spawn_region] >= MAX_SPAWNS_PER_REGION)
    {
        SpawnCount[spawn_region] = 0;
    }
    return i;
}
Reply


Messages In This Thread
[Updated]Efficient Multiple Spawning System - by Yashas - 19.04.2013, 12:41
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 15:48
Re: Efficient Multiple Spawning System - by Dan.. - 19.04.2013, 16:30
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 16:51
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 16:55
Re: Efficient Multiple Spawning System - by RajatPawar - 19.04.2013, 17:04
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 17:19
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 17:25
Re: Efficient Multiple Spawning System - by Vince - 19.04.2013, 17:31
Re: Efficient Multiple Spawning System - by Yashas - 19.04.2013, 17:36
Re: Efficient Multiple Spawning System - by Dan.. - 19.04.2013, 18:30
Re: Efficient Multiple Spawning System - by mastermax7777 - 20.04.2013, 05:41
Re: Efficient Multiple Spawning System - by RajatPawar - 20.04.2013, 05:48
Re: Efficient Multiple Spawning System - by Yashas - 20.04.2013, 11:18
Re: Efficient Multiple Spawning System - by Wickeed - 13.06.2013, 12:31
Re: Efficient Multiple Spawning System - by Yashas - 22.06.2013, 15:44

Forum Jump:


Users browsing this thread: 3 Guest(s)