HELP! CPS
#1

plz someone fix my script!
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

if(pickupid == pcmoneypickup)
{
  GivePlayerMoney(playerid, 20000);
  GameTextForPlayer(playerid,"Found 20000!",3000,5);
  return 1;
}
if(pickupid == pcheathpickup)
{
  SetPlayerHealth(playerid,100);
  GameTextForPlayer(playerid,"Found Some Health!",3000,5);
  return 1;
}
if(pickupid == pcarmorpickup)
{
  SetPlayerArmour(playerid,100);
  GameTextForPlayer(playerid,"Found Some Armour!",3000,5);
  return 1;
}

	return 1;
}
for some reason the top 2 ones dont work and the last 1 does all the things the top 2 are suposed to do!
for examlple:

pcmoneypickup gives 20K
pcheathpickup gived 100 heath
pcarmorpickup gives 100 armour


BUT ONLY pcarmorpickup works and it gives 200K full armour and full heath!
PLZ HELP

EDIT: ALSO the reason i put CPS as the title i need help with CPS, once i go into a checkpoint it disapears so i can never go in it again how can i fix that?
Reply


Messages In This Thread
HELP! CPS - by StrickenKid - 07.02.2009, 23:09
Re: HELP! CPS - by Sandra18[NL] - 08.02.2009, 00:26
Re: HELP! CPS - by chenza - 08.02.2009, 01:02
Re: HELP! CPS - by Mikep - 08.02.2009, 01:12

Forum Jump:


Users browsing this thread: 4 Guest(s)