• DTextEntry help
    6 replies, posted
[QUOTE]local Text = vgui.Create( "DTextEntry", main ) Text:SetPos( 25, 150 ) Text:SetSize( 165, 25 ) Text:SetText( "Enter Name Here" ) Text.OnEnter = function( self ) -- something like ST PVT --math.random( 1000, 9999 )-- --WHEN YOU PRESS ENTER NAME COMES HERE-- end[/QUOTE] How do I make it like this? I srsly have no idea Can someone link a forum or something to help?
w....what Can you pseudo code it?
Nevermind, got it fixed
I think he wanted to know how to have preset text in the DTextEntry for a military RP server. They commonly use ranks and rank numbers before the actual RP name.
One last retarded question [QUOTE]Text.OnEnter = function( self) main:Remove() ply:ConCommand("say /advert Hey! Im new to the server can I have a trainer to spawn please?") ply:ConCommand("say !warp spawnae") ply:ConCommand ("say /name ST PVT " ..math.random(1000,9999).. " " ..self:GetValue().. " ") end[/QUOTE] why does this only read the first line?
'ply' is probably undefined
[QUOTE=Jason138;52094567]One last retarded question why does this only read the first line?[/QUOTE] There's some delay in engine between chat messages that you type in
Sorry, you need to Log In to post a reply to this thread.