02.02.2017, 21:29
create a new variable called "FamilyInfo[i][FamilyOnline]" (for example).
if a player is connecting set the variable + 1 for his family.
set it minus 1 when he is disconnecting.
easiest solution.
and why do you need the scanff there?
the player is typing a ID but you anyways show him the information of all families.
if a player is connecting set the variable + 1 for his family.
set it minus 1 when he is disconnecting.
easiest solution.
and why do you need the scanff there?
the player is typing a ID but you anyways show him the information of all families.