Getting player ID with INPUT style dialog
#1

Alrighty guys, so I'm working on something and got to a part that I never did before. Now the thing what I'm trying to do is make a player to type into a INPUT dialog the ID of the player that they'd like to challenge but I'm not really sure how to execute it.


How can I make a check if the player ID they wrote into the dialog is online or offline? I tried with IsNumeric stock but had no luck.


My 2nd solution is to make the player press TAB and then press onto the player they'd like to challenge but I'd like to know if there's a way to do so with dialog first, and if so, which.


Thanks in advance
Reply
#2

new user = ReturnUser(inputtext);
if(IsPlayerConnected(user))
{
//whollaaa
}
Reply
#3

Quote:
Originally Posted by ikey07
Посмотреть сообщение
new user = ReturnUser(inputtext);
if(IsPlayerConnected(user))
{
//whollaaa
}
While I was going to add your function I noticed there was a way to do so with sscanf so I did so, thanks for your fast reply mate as it helped me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)