View Single Post
delux450
Junior Member
Join Date: Apr 2020
Old 04-21-2020 , 10:24   Re: Individual count++ (personal) for each player
Reply With Quote #3

Quote:
Originally Posted by Nexd View Post
int count[MAXPLAYERS+1];
count[client]++;

dont forget to reset the variable somewhere like
for(int i = 1; i <= MaxClients; i++) count[i] = 0;
Hello nexd, thanks for solution

The variable it was reseted at Event_PlayerSpawn
PHP Code:
public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) {
i_he_grenade 0;
...
...
...

Thanks dude, i'll try and if is good, i change to 'solved'
delux450 is offline