random crashing the server
#6


Tested not crash.
pawn Code:
enum
    Finfo
{
    fName[45],
    fMoney,
    fRepeats,
};

new
    FireInfoS[][Finfo] =
{
    { "Lvpd", 15000,6},
    { "Ammunation", 15000,5},
    { "Pirates In Men's Pants", 15000,6}
};

new
    Float:FireSpawns[][][3] =
{
    {//Lvpd
        {2297.2849,2430.6099,10.8203},
        {2293.6882,2430.5081,10.8203},
        {2272.9319,2428.5117,10.8203},
        {2276.1521,2429.4663,10.8203},
        {2278.4812,2427.9199,10.8203},
        {2273.8140,2427.1079,10.8203}
    },
    {// Ammunation
        {2297.2849,2430.6099,10.8203},
        {2293.6882,2430.5081,10.8203},
        {2272.9319,2428.5117,10.8203},
        {2276.1521,2429.4663,10.8203},
        {2278.4812,2427.9199,10.8203},
        {2273.8140,2427.1079,10.8203}
    },
    {//Pirates In Men's Pants
        {2297.2849,2430.6099,10.8203},
        {2293.6882,2430.5081,10.8203},
        {2272.9319,2428.5117,10.8203},
        {2276.1521,2429.4663,10.8203},
        {2278.4812,2427.9199,10.8203},
        {2273.8140,2427.1079,10.8203}
    }
};

//Global
new
    iFire;
   
public
    OnFilterScriptInit()
{
    iFire = random(sizeof(FireInfoS));
       
    printf(" %d %s  %d  %d  %f  %f  %f", iFire, FireInfoS[iFire][fName], FireInfoS[iFire][fMoney], FireInfoS[iFire][fRepeats], FireSpawns[iFire][0][0], FireSpawns[iFire][0][1], FireSpawns[iFire][0][2]);
    return 1;
}
Reply


Messages In This Thread
random crashing the server - by The_Gangstas - 28.12.2010, 20:08
Re: random crashing the server - by smeti - 28.12.2010, 20:23
Re: random crashing the server - by The_Gangstas - 28.12.2010, 20:25
Re: random crashing the server - by smeti - 28.12.2010, 20:35
Re: random crashing the server - by The_Gangstas - 28.12.2010, 20:48
Re: random crashing the server - by smeti - 28.12.2010, 21:14

Forum Jump:


Users browsing this thread: 4 Guest(s)