Array advice.
#2

pawn Код:
enum E_SPAWN_DATA
{
    Float: E_X,
    Float: E_Y,
    Float: E_Z,
    SKIN_ID
}

static const
    g_spawnData[ ] [ E_SPAWN_DATA ]
    {
        { 1.0, 2.0, 3.0, 278 }
    }
;

new i = random( sizeof( g_spawnData ) );
SetPlayerPos( playerid, g_spawnData[ i ] [ E_X ], g_spawnData[ i ] [ E_Y ], g_spawnData[ i ] [ E_Z ] );
SetPlayerSkin( playerid, g_spawnData[ i ] [ E_SKIN ] );
Reply


Messages In This Thread
Array advice. - by MP2 - 29.01.2012, 22:20
Re: Array advice. - by Lorenc_ - 29.01.2012, 22:55
Re: Array advice. - by MP2 - 29.01.2012, 23:39
Re: Array advice. - by MP2 - 30.01.2012, 02:45
Re: Array advice. - by Babul - 30.01.2012, 03:40

Forum Jump:


Users browsing this thread: 1 Guest(s)