How can I detect this?
#9

Quote:
Originally Posted by TheToretto
View Post
Yes it is correct, but pInfo[playerid][ZombiesKilled] value is both the first checkpoint's and the after checkpoint.
If you wan't to skip that, reset the variable

pawn Code:
zombieskilled = pInfo[playerid][ZombiesKilled];
pInfo[playerid][ZombiesKilled] = 0;
because basically on the if statement you got here:
pawn Code:
if(pInfo[playerid][ZombiesKilled] > zombieskilled)
If you kill just one zombie after the first checkpoint, it will be true.
But I don't want to set it at =0;
Reply


Messages In This Thread
How can I detect this? - by Zeus666 - 29.10.2018, 20:17
Re: How can I detect this? - by TheToretto - 29.10.2018, 22:21
Re: How can I detect this? - by Zeus666 - 30.10.2018, 11:41
Re: How can I detect this? - by TheToretto - 30.10.2018, 12:35
Re: How can I detect this? - by Zeus666 - 30.10.2018, 19:10
Re: How can I detect this? - by TheToretto - 30.10.2018, 19:30
Re: How can I detect this? - by Zeus666 - 31.10.2018, 09:06
Re: How can I detect this? - by TheToretto - 31.10.2018, 09:37
Re: How can I detect this? - by Zeus666 - 31.10.2018, 09:51
Re: How can I detect this? - by TheToretto - 31.10.2018, 09:58
Re: How can I detect this? - by Zeus666 - 31.10.2018, 10:13
Re: How can I detect this? - by TheToretto - 31.10.2018, 10:25
Re: How can I detect this? - by Zeus666 - 31.10.2018, 10:28
Re: How can I detect this? - by TheToretto - 31.10.2018, 10:30

Forum Jump:


Users browsing this thread: 2 Guest(s)