If i do this , would it be buggy ?
#2

pawn Code:
new Heal[8];

Heal[0] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[1] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[2] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[3] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[4] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[5] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[6] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);
Heal[7] = CreatePickup(1240 , 2, 2261.6921,-71.1853,31.6016, -1);


for(new S = 0; S<8; S++)
{
    if(pickupid == Heal[S])
    {
      //SendClientMessage(playerid, 0xDEEE20FF, "you healed yourself");
      SetPlayerHealth(playerid, 100.0);
   }
}
Your code would make only the last one work.
Reply


Messages In This Thread
If i do this , would it be buggy ? - by boelie - 17.01.2010, 10:06
Re: If i do this , would it be buggy ? - by [HiC]TheKiller - 17.01.2010, 10:16
Re: If i do this , would it be buggy ? - by boelie - 17.01.2010, 10:32
Re: If i do this , would it be buggy ? - by MadeMan - 17.01.2010, 10:35
Re: If i do this , would it be buggy ? - by [DM]Kane - 17.01.2010, 11:05
Re: If i do this , would it be buggy ? - by MadeMan - 17.01.2010, 11:06
Re: If i do this , would it be buggy ? - by Fedee! - 17.01.2010, 11:08
Re: If i do this , would it be buggy ? - by [DM]Kane - 17.01.2010, 11:10
Re: If i do this , would it be buggy ? - by Fedee! - 17.01.2010, 11:17
Re: If i do this , would it be buggy ? - by Fedee! - 17.01.2010, 11:17

Forum Jump:


Users browsing this thread: 2 Guest(s)