I'm trying to figure how to find a char ID from a player who joins a waiting room via this code :
waitingroom "Join Blue Team", 2, "battle#join::OnStart", 1;
How can I have the char ID of the first one to join ? And finally the others ?
I thought strcharinfo(0); would do the job. But I just have a "buildin_strcharinfo: fatal error ! player not attached!" error.
Thank you.
Edit : Nvm. I found this :
*getwaitingroomusers "<NPCobjectname>";
This command get all the characters in the waiting room of the given NPC and stores
their gids in the array .@waitingroom_users[]. Also, stores the the number of characters
in the variable .@waitingroom_usercount
Question
Jowy129
Hello !
I'm trying to figure how to find a char ID from a player who joins a waiting room via this code :
waitingroom "Join Blue Team", 2, "battle#join::OnStart", 1;
How can I have the char ID of the first one to join ? And finally the others ?
I thought strcharinfo(0); would do the job. But I just have a "buildin_strcharinfo: fatal error ! player not attached!" error.
Thank you.
Edit : Nvm. I found this :
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.