Thread: playerscount
View Single Post
  #10  
Old 09-26-2002, 02:40 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by Com013

That doesn't work anymore - even showcharacter NPCs have a positive ID. Unfortunatly.
Use strlen(#n(i))>0 or something like that. I was thinking of players[i]fullhearts>0 but I fear that doesn't work online (client-side).
for(a=0;a<playerscount;a++){
if(players[a].id!=-1){
worked for me (and #n wouldnt work if an npc was given a nickname with setcharprop #n)
__________________
GONE, BAI
Reply With Quote