Get firstname state then do something
#1

What is the code to get the playername state after the send some message in chat. (OnPlayerText)

Like if your name is Firstname only instead of Firstname_Lastname, will do something.

Instance:
My Name in game is: Gates
i typed on normal chat, i chat then do something with the text.
Reply
#2

Quick Up!
Reply
#3

You don't make any sense
if you want someone's first name (assuming you use the usual Firstname_Lastname ), loop thru string's chars, check if it matches _, if it does, strmid from 0 to that character into some string variable, and show it.
if thats not what you want, then use WORDS to describe what you want, not quick up
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)