Creating Spike Strips problem.
#4

Use it in that stock too..

pawn Код:
stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
    {
        if(SpikeInfo[i][sCreated] == 0)
        {
            SpikeInfo[i][sCreated]=1;
            SpikeInfo[i][sX]=x;
            SpikeInfo[i][sY]=y;
            SpikeInfo[i][sZ]=z-0.7;
            SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90,-1,-1,-1,100.0);
            break;
        }
    }
    return 0;
}
At least I recommend you to break the stock, or it may continue with the loop when you created the spike strip
Reply


Messages In This Thread
Creating Spike Strips problem. - by Jack_Leslie - 17.07.2011, 07:30
Re: Creating Spike Strips problem. - by Jochemd - 17.07.2011, 07:38
Re: Creating Spike Strips problem. - by Jack_Leslie - 17.07.2011, 07:38
Re: Creating Spike Strips problem. - by Jochemd - 17.07.2011, 07:40
Re: Creating Spike Strips problem. - by Jack_Leslie - 17.07.2011, 07:41
Re: Creating Spike Strips problem. - by Jochemd - 17.07.2011, 07:43
Re: Creating Spike Strips problem. - by Jack_Leslie - 17.07.2011, 07:47
Re: Creating Spike Strips problem. - by Jochemd - 17.07.2011, 08:11
Re: Creating Spike Strips problem. - by Jack_Leslie - 17.07.2011, 08:15
Re: Creating Spike Strips problem. - by Jochemd - 17.07.2011, 08:32

Forum Jump:


Users browsing this thread: 3 Guest(s)