Pickups problem
#1

I have this script

pawn Код:
//new Float:nRange[3];
if(!sscanf(string, "p<\">'nitro''posX='f'posY='f'posZ='f",x_,y_,z_))
        {
            n++;
            nitro = CreateDynamicPickup(1239, 1, x_, y_, z_-0.3, world_,interior_, -1, 200.0);
            CreateDynamic3DTextLabel("{FF0000}[{00FF00}Nitro{FF0000}]",-1,x_,y_,z_+0.2,200);

            nRange[0] = x_;
            nRange[1] = y_;
            nRange[2] = z_;
The script above will create a pickups(more than 1 pickup) and 'nRange'(for IsPlayerInRangeOfPoint) will hold the pickups' positions(x,y,z). I have a problem with nRange. It only holds 1 pickup 'nRange'(x,y,z). It should hold more than 1 pickups' range. How to fix it?
Reply


Messages In This Thread
Pickups problem - by newbienoob - 29.03.2013, 09:04
Re: Pickups problem - by judothijs - 29.03.2013, 09:40
Re: Pickups problem - by newbienoob - 29.03.2013, 09:51
Re: Pickups problem - by judothijs - 29.03.2013, 10:25
Re: Pickups problem - by newbienoob - 31.03.2013, 05:38
Re: Pickups problem - by Pottus - 31.03.2013, 05:41
Re: Pickups problem - by newbienoob - 31.03.2013, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)