Help in memobox

Started by Luis_Labarca, Nov 01, 2016, 01:24 AM

Previous topic - Next topic

Luis_Labarca

how I can do that by sending

Stream.StartWrite ()
Stream.WriteString ("OpenTest")
Stream.WriteString("LuisModsHD")//
Stream.SendStream (player)

the client side comes out LuisModsHD and not OpenTest

use the OpenTest to create the menu and LuisModsHD is what dira in the addline


the function I use is

function onPlayerCommand( player, Comando, text )
{
local cmd = Comando.tolower();
if ( cmd == "stats")
{
Stream.StartWrite()
Stream.WriteString("OpenTest")
Stream.WriteString("LuisModsHD")//
Stream.SendStream(player)
}
}

Test<-null;

function Server::ServerData(stream)
{
local RedStr = stream.ReadString(),ReadNum = stream.ReadInt();
if(RedStr=="OpenTest")
{
::Test <- GUIMemobox( VectorScreen(50,100),VectorScreen(200, 100), Colour(20, 20, 20), GUI_FLAG_MEMOBOX_TOPBOTTOM | GUI_FLAG_VISIBLE);
::Test.TextColour = Colour(255, 255, 255);
::Test.Alpha=200;
::Test.FontName = "Lucida Console";
::Test.FontSize = 10;
::Test.AddFlags(GUI_FLAG_TEXT_TAGS | GUI_FLAG_SCROLLABLE | GUI_FLAG_SCROLLBAR_HORIZ);
::Test.TextPaddingTop = 10;
::Test.TextPaddingBottom = 4;
::Test.TextPaddingLeft = 10;
::Test.TextPaddingRight = 10;
::Test.AddLine(RedStr+"");//I want to say here LuisModsHD but not says is OpenTest
}
}

I want to that create the guimemobox with String as can do that functions I help?

thanks from already
My server RP
IP: 51.222.28.159:8194

Thijn

What did you try to debug your problem?

Luis_Labarca

Quote from: Thijn on Nov 01, 2016, 06:56 AMWhat did you try to debug your problem?

I want that in addline proofread the message LuisModsHD


with string
Stream.StartWrite()
Stream.WriteString("OpenTest")
Stream.WriteString("LuisModsHD")//
Stream.SendStream(player)
My server RP
IP: 51.222.28.159:8194

Luis_Labarca

Problem Solved thanks
My server RP
IP: 51.222.28.159:8194