I need a timer
#8

Quote:
Originally Posted by scout322
Посмотреть сообщение
Whay isn't this ->> PlayerInfo[playerid][pcooldown] - 1; <-- working ?
Because you're doing a calulation, but aren't saving the result anywhere. Correct is:
pawn Код:
PlayerInfo[playerid][pcooldown] = PlayerInfo[playerid][pcooldown] - 1;

// Or the shorthand version:
PlayerInfo[playerid][pcooldown] -= 1;

// Or even shorter:
PlayerInfo[playerid][pcooldown]--;
But do as Pottus said.
Reply


Messages In This Thread
I need a timer - by scout322 - 05.06.2013, 18:30
Re: I need a timer - by scout322 - 05.06.2013, 18:44
Re: I need a timer - by scout322 - 05.06.2013, 19:55
Re: I need a timer - by Pottus - 05.06.2013, 20:02
Re: I need a timer - by scout322 - 05.06.2013, 20:04
Re: I need a timer - by scout322 - 05.06.2013, 20:10
Re: I need a timer - by scout322 - 05.06.2013, 21:53
Re: I need a timer - by Vince - 05.06.2013, 22:41
Re: I need a timer - by GWMPT - 06.06.2013, 00:30
Re: I need a timer - by scout322 - 06.06.2013, 06:46

Forum Jump:


Users browsing this thread: 1 Guest(s)