Little help with random spawns
#1

Hey this is a very little question about random spawns.
I want 2 or more random spawns sections I mean this:

PHP код:
public OnPlayerSpawn(playerid)
{
    switch(
GetPlayerSkin(playerid))
    {
        case 
105,106,107,269,270,271:
            {
                 new 
rand random(sizeof(gRandomSpawns));
                 
SetPlayerPos(playeridgRandomSpawns[rand][0], gRandomSpawns[rand][1], gRandomSpawns[rand][2]);
                 
SetPlayerColor(playerid0x499C67FF);
         }
    }
    switch(
GetPlayerSkin(playerid))
    {
        case 
102,103,104:
            {
                 new 
rand random(sizeof(bRandomSpawns));
                 
SetPlayerPos(playeridbRandomSpawns[rand][0], bRandomSpawns[rand][1], bRandomSpawns[rand][2]);
         }
    }
    return 
1;

I think its wrong and it is!
I got one error namely:

PHP код:
C:\Users\Edward\Desktop\SA-MP Server Gangwars\pawno\GangWarsULv.03.pwn(348) : error 018initialization data exceeds declared size
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Ty,
Reply


Messages In This Thread
Little help with random spawns - by mickos - 16.07.2012, 17:16
Re: Little help with random spawns - by mickos - 16.07.2012, 18:31
Re: Little help with random spawns - by leonardo1434 - 16.07.2012, 18:43
Re: Little help with random spawns - by mickos - 16.07.2012, 18:46
Re: Little help with random spawns - by hansen111 - 16.07.2012, 18:50
Re: Little help with random spawns - by mickos - 16.07.2012, 18:56
Re: Little help with random spawns - by hansen111 - 16.07.2012, 19:11
Re: Little help with random spawns - by mickos - 16.07.2012, 19:14
Re: Little help with random spawns - by hansen111 - 16.07.2012, 19:38
Re: Little help with random spawns - by mickos - 16.07.2012, 19:50

Forum Jump:


Users browsing this thread: 5 Guest(s)