Erfanice Posted January 18, 2022 Share Posted January 18, 2022 Hello, I put some information in ServerSide and sent it to ClientSide This information contains 2 numbers, and the second information is on SetTimer. And I put these two data in guiCreateMemo using guiSetText But when the first information (does not have SetTimer) enters guiCreateMemo, the second information (has SetTimer) deletes the previous information and replaces the second information (does not have SetTimer) instead of being placed under the previous information in guiCreateMemo. I want the first information to be displayed along with the second information below. Link to comment
Erfanice Posted January 19, 2022 Author Share Posted January 19, 2022 (edited) ;/ Edited January 19, 2022 by M.Wizard Link to comment
Shady1 Posted January 19, 2022 Share Posted January 19, 2022 dude i need to see what you want to do and your codes tell me this properly, i can help Link to comment
Mr.Hugin Posted January 19, 2022 Share Posted January 19, 2022 On 18/01/2022 at 19:33, M.Wizard said: Hello, I put some information in ServerSide and sent it to ClientSide This information contains 2 numbers, and the second information is on SetTimer. And I put these two data in guiCreateMemo using guiSetText But when the first information (does not have SetTimer) enters guiCreateMemo, the second information (has SetTimer) deletes the previous information and replaces the second information (does not have SetTimer) instead of being placed under the previous information in guiCreateMemo. I want the first information to be displayed along with the second information below. What is the idea exactly? Link to comment
Erfanice Posted January 19, 2022 Author Share Posted January 19, 2022 3 hours ago, Mr.Hugin said: What is the idea exactly? I entered some text in guiCreateMemo, Texts: (written by myself) https://pasteboard.co/Ah3jDscxeV9y.png But only when the texts enter guiCreateMemo, only the text "Hello" is displayed, I want all these texts to be displayed in the following order. Link to comment
Mr.Hugin Posted January 19, 2022 Share Posted January 19, 2022 11 minutes ago, M.Wizard said: I entered some text in guiCreateMemo, Texts: (written by myself) https://pasteboard.co/Ah3jDscxeV9y.png But only when the texts enter guiCreateMemo, only the text "Hello" is displayed, I want all these texts to be displayed in the following order. Do you mean that you want the writing to be in order and stable when you turn on the mod? Link to comment
๖ۣۜζ͜͡RapGod Posted January 19, 2022 Share Posted January 19, 2022 (edited) 24 minutes ago, M.Wizard said: I entered some text in guiCreateMemo, Texts: (written by myself) https://pasteboard.co/Ah3jDscxeV9y.png But only when the texts enter guiCreateMemo, only the text "Hello" is displayed, I want all these texts to be displayed in the following order. Hello, @M.Wizard, as much as i tried to guess what you're saying, is that you want to enter these texts in the Memo you created, by order. First Create the memo, Then list them by order 1 by 1 the way you want them to be. Unless you want someone else to enter it for you(which means a user). that's a simple code, i'm not sure if it will help you, but try it out. local panel = guiCreateWindow(x,y,width,height,"Panel",true) --Created The window(made it relative) (Define the x,y, width,height as you wish) guiSetVisible(myWindow,false) --set it to true if you want it to be visible. local myMemo = guiCreateMemo(x,y,width,height," ",true,panel) --Added the Memo to the window --You can create a table that contains all of your Messages. local message ={ {name="Hello"}, {name="Anything"}, {name="Test"}, {name ="1"} } --Now you can make a loop to list them all inside the memo. for i=1,#message do guiSetText(myMemo,message[i].name) end It should be this way for you to list them all, i haven't tested the code, but just to give you an idea of what to do. Edited January 19, 2022 by ๖ۣۜζ͜͡RapGod Link to comment
The_GTA Posted January 19, 2022 Share Posted January 19, 2022 1 hour ago, ๖ۣۜζ͜͡RapGod said: It should be this way for you to list them all, i haven't tested the code, but just to give you an idea of what to do. I think that M.Wizard has also asked to have the text be vertically below ("under") the previous text. In that case you have to extend your example with a query to the guiGetText function along with a string concatenation. Instead of replacing the memo text we should append it, like so... (...) for i=1,#message do local prevText = guiGetText(myMemo) local newText = message[i].name if (prevText == "") then guiSetText(myMemo,newText) else guiSetText(myMemo,prevText .. "\n" .. newText) end end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now