Chris, I'm assuming you're trying to compare the name of a player to a constant, like your own name. Maybe to implement admin commands or whatever.
The problem is that the Name of Player returns a text variable, which can't be compared. Text can be different between clients since text uses localization. That's why you can't compare text variables.
If you want to implement admin commands or such, find out your handle instead and compare "Handle Of Player" with your handle.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How do i get the name of player 1 using triggers?
@Trieva: Go
There isn't such a function
I think it's called "Handle Of Player".
Edit: Wait, nvm. That's the unique ID like 2-12-239123
@Chris97Ong: Go
you can get the name of a player only as text not as string and there is no way to convert text to string!
@FunkyUserName: Go
Really? How? I mean how do I get the name of a player?
@Chris97Ong: Go
there is a gui action for that, PlayerName() but it is TEXT not a string
@Trieva: Go
Right, got it
Chris, I'm assuming you're trying to compare the name of a player to a constant, like your own name. Maybe to implement admin commands or whatever.
The problem is that the Name of Player returns a text variable, which can't be compared. Text can be different between clients since text uses localization. That's why you can't compare text variables.
If you want to implement admin commands or such, find out your handle instead and compare "Handle Of Player" with your handle.