Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Playerscount (https://forums.graalonline.com/forums/showthread.php?t=12886)

LiquidIce00 09-25-2001 08:02 AM

Playerscount
 
isnt playerscount supposed to return the number of players in a level ? (if you are alone playerscount=1 correct?)
well it doesnt work for some reason .. it returns your current position as a player (not all the players together)
or im confused heheheh

Aknts 09-25-2001 09:02 AM

Yeah if your by yourself its 1

Merlin 09-26-2001 12:01 AM

offline i have a problem with that when i have showcharcter npcs it counts them as a player...

LiquidIce00 09-26-2001 02:10 AM

Quote:

Originally posted by Merlin
offline i have a problem with that when i have showcharcter npcs it counts them as a player...
yes thats one thing ..
but online it was me and a friend.. and my script said if (playerscount=2) { ... }
else { say2 Must have 2 players; }
and it keps doing the say2 ..
for some reason its returning your current position not the max ammt of players. (its weird)

Sep3kP2P 09-26-2001 02:24 AM

...
 
with playerscount 0 is always you so if there are 4 people playerscount will return 3 and with npcs npcscount (or whatever) will count itself as 0, so if there are 5 npcscount will be 4, am i correct?


All times are GMT +2. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.