-
Posts
636 -
Joined
-
Last visited
Everything posted by 'LinKin
-
What is the problem with Timers?
-
Hi, I've a table like this: myTable[1] = "1st Text" myTable[2] = "2nd Text" myTable[3] = "3rd Text" myTable[4] = "4th Text" myTable[5] = "5th Text" Then, I add the event onClientRender to show the message that is in the first position of the table. And after 5 seconds, I stop showing it. But, after these 5 seconds, I also want to 'delete' the first position of the table, and move the other positions of it. So it'd look like this: myTable[1] = "2nd Text" myTable[2] = "3rd Text" myTable[3] = "4th Text" myTable[4] = "5th Text" So, the question is, what would happen to the 5th position of the table? Would it still occupate a memory's space?
-
I'll complete it and check it Citizen.
-
What makes you think I didn't.. Facepalm
-
I tried to add a 3rd line, and it didn't work properly. I added { 10000, "3rd text" } into the table. But then that text lasted 10 seconds to dissapear... It's supposed it lasts 5 secs no? Also, I don't understand that code very well
-
Thanks for the help but still... Pretend you kill a player. So a message is shown in ur screen durring 10 seconds. And then it dissapears. All fine so far. Now, pretend that you kill a player, then, the message is shown in your screen and the 10 secs countdown to remove it begins, AND then, after 5 seconds you kill another player, but this message will not be shown but untill the last message dissapears, which is within 5 seconds.
-
But that would cut off the current displayed text. I want to display the 1st text durring 3 secs and then the 2nd one.. Do you understand me? It's like a queue
-
How would you solve this situation: When you kill someone, a message is shown in ur screen "You killed Sam1ler" and it dissapears after 3 seconds, but, for example, you kill someone, and then after 1 second u kill another one, so the both messages would be shown in ur screen, therefore it'll look bad. How can you do it so that only after the previous message was displayed, the new one comes up?
-
Hello, I've a table (like a matrice of 2 columns) I store the online players' name and element (table.insert(myTable,{playerName, theElement})) But then, how can I clear it? if I use a loop and do table.remove(myTable, i) it doesn't work. I mean something crashes there and the table is not really cleared but all messed up. I'm currently doing myTable = { } But is that a good way to do it? I want to save memory space. So how can I clear the table properly?
-
Thanks, I made it like I was trying to do it at the beginning I trigger the event and send it 1 more argument, triggerEvent("onClientGUIComboBoxAccepted", myCombobox, myCombobox, item) And well I just do the code inside the implementation of that event.
-
No, I'm trying to use triggerEvent("onClientGUIComboBoxAccepted", combobox_selectplayer, playerCount) ; where playerCount is an int EDIT: No, the event onClientGUIComboBoxAccepted is not triggered after using guiComboBoxSetSelected
-
Hello, I'm wondering if when we use guiComboBoxSetSelected() the event onClientGUIComboBoxAccepted is triggered. If not, how can we force it?
-
Hello, I've a number like this 16784972 But I want to show it like this: 16.784.972 in the GUI so that it's easier to read it. How can I do that? Is there some function for it? Thanks
-
Still not clear for me I want just to allow users to type Alphanumeric characters [A-Z] [0-9] not characters like: #¬€|@ etc..
-
Hello, I want to know how can I restrict the characters that a player can type inside an editBox ABCDEFGHIJKLMNOPQRSTUVWXYZ and 0123456789 How can I do that? Thanks
-
So I've these variables: num1 acc1 top1 num2 acc2 top2 num3 acc3 top3 num4 acc4 top4 num5 acc5 top5 num6 acc6 top6 Those are GUI Labels. In the client, I recieve a table containing info about tops, so I want to set these GUI text to the values that the table brings. But how? I tried this. But it shows an error in the debug attempt to concatenate global 'num' (a nil value) for i = 1, #returnTable do guiSetText(num..i , returnTable[i][1]) guiSetText(acc..i , returnTable[i][2]) guiSetText(top..i , returnTable[i][3]) end Do you understand what I'm trying to do? - Suggestions please.
-
Hi I've a SQL table. I want to sort it DESC by the value 'points'. I already know how to do that. But I what I want to do is to return something like this: 1. Account Points 2. Account Points 3. Account Points 4. Account Points 5. Account Points 77. myAccount my Points So I want to return the top 5 + my position in the table (so the rank) and my data. How can I do that?
-
If I wanted to sort the the entire table, (without limit) would I be able to do so just by deleting "LIMIT 10" from the Query?
-
Hello I'm not so good at maths so I need help. How can I take the first 2 decimals of a number? For example; 3666/66 = 55,54545455 I'd want to take 55,54 How to do so?
-
Hello, I wonder how can I place the things correctly for ALL resolutions. For example if I want a rectangle image to show right on top-right side of the client screen, for absolutely every resolution. How can I do that? Maybe making divisions of the screen? local screenWidth, screenHeight = guiGetScreenSize ( ) myX = screenWidth/ 6 ? OR If I have the size of the image, for example 500x300 I'd do something like; myX = screenWidth - 500 myY = 0 Thanks
-
Hi, So I create like an image label in the GUI, Then I use fetchRemote to get some image from the internet, The question is; For example the image that internet returns is big size, will it be automatically adjusted to the "Image Label" size of the GUI? Thanks
-
Sane Hosting - DDoS Protected - Cheap and Reliable
'LinKin replied to SaneHosting's topic in Hosting solutions
Tax fraud? Can you explain to us?