Need Help with /slap
#3

GetPlayerHealth doesn't work like that.
You have to store the health in a float, like this:
pawn Код:
new Float:hp;
GetPlayerHealth(id, hp);
Quote:
Originally Posted by Cypress
Посмотреть сообщение
pawn Код:
SetPlayerScore(id, -1); // - the amount you want
Wow, that's just.. wow..
You're setting that player's score to -1. You aren't decreasing it. If you want to decrease it you need to use this:
pawn Код:
SetPlayerScore(id, GetPlayerScore(id)-10);
Reply


Messages In This Thread
Need Help with /slap - by GAMER_PS2 - 11.11.2011, 12:38
Re: Need Help with /slap - by Cypress - 11.11.2011, 12:39
Re: Need Help with /slap - by Biesmen - 11.11.2011, 12:42
AW: Need Help with /slap - by Drebin - 11.11.2011, 12:45
Re: Need Help with /slap - by GAMER_PS2 - 11.11.2011, 12:49
Re: AW: Need Help with /slap - by Cypress - 11.11.2011, 12:51
Re: Need Help with /slap - by GAMER_PS2 - 11.11.2011, 12:54
Re: AW: Need Help with /slap - by Biesmen - 11.11.2011, 12:54
AW: Need Help with /slap - by Drebin - 11.11.2011, 12:55
Re: Need Help with /slap - by Cypress - 11.11.2011, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)