-
Posts
1,050 -
Joined
-
Last visited
Everything posted by ViRuZGamiing
-
Try outputting your query result to see what you get
-
Why not store it in SQL then you could do a select with an ORDER BY.
-
you can't use select as variable name since it's LUA predefined
-
As far as my SQL knowledge goes there has to be a: WHERE username = .... So that you don't update the entire table
-
May I ask which Editor you use? I like the linter better than my N++, is this Sublime Text perhaps?
-
Don't mind my C# behaviour lol I was wrong here. Didn't ever look this up for LUA so now I know. We learn everyday I guess
-
Not really sure what you're trying to say but what I've written does work tho, I've used this in my code as well.
-
Is the file changed to a read-only file perhaps by selecting readonly as true?
-
local wr, wg, wb = 1, 1, 1 local curframemete = 2 local wrd , wgd, wbd = false, false, false has to be local wr = 1, wg = 1, wb = 1 local curframemete = 2 local wrd = false, wgd = false, wbd = false
-
Yeah I am typing this on my phone so everything is written by mind not by Wiki. So yeah you'll need a couple of functions. One for the spawn and one for the set location. Although my explanation was More about the theory than the script itself. They way of thinking since that'll get you the furthest.
-
local hFile = fileOpen("test.txt") if hFile then fileSetPos( hFile, fileGetSize( hFile ) )
-
If making your own. You'll need to think logically of the process. Think like this: When do I want to spawn on a location? On Login, On Dead, ... Do I want 1 location or multiple? After you've asked yourself these questions Let all those 'events' (onPlayerWasted, ...) Trigger a spawn function using setElementPosition
-
Make the question English or move it to the board of your language. Kind regards
-
My suggestion is looking at which ones are the biggest and remove them
-
As @LoPollo said, you can BUT only 1 model per ID. So that goes for mods. You can apply different shaders to the same Vehicle ID but not models. Example: You can create multiple cars from ID 536 and they can have shader each of them, but if you want a mod ALL those cars change with that single ID. There isn't an option to add ID's neither. Kind regards
-
As I notice by the code, you didn't probably write it. Since I see the use of triggers and elementdata and such although you don't know how to debug. Assuming this is from the community. we do help you, don't mishear my answer. but we help you with your code and your problems (and learning course). So instead of asking us to fix community scripts, please start from the bottom. kind regards
-
Try putting output's in your code and see where it runs and where it doesn't
-
What happens and is there a debugscript 3 error?
-
onChatMessage check the 'message' if it contains what you're looking for then cancel the event and output your line of text
-
Since you're new I suggest starting scripting from the beginning. Most people come in here expect us to make the script for them or help the step by step while actually don't learn out of it. So if you'd like to get the scripts you want, you could start from the beginning and ask us help for the problems you get while learning. kind regards
-
The function needs to be called (started by some sort of action) a command calls it, there are also events which do, such as: onPlayerLogin. Or you could make your own event (addEvent & addEventHandler) to call the function with a timer.
-
Full size: http://pic.xtream-reallife.de/images/2016/06/11/explained.jpg This is what I ment
-
Speaking purely theoretical, wouldn't you be able to attach a value to the scrollbar's upper position, 0. Then if you scroll you increase the value by 1 for example every 10px down (just an example). Then for the display get the items in the array to be displayed from index scrollbar value till scrollbar value + 10. I hope you understand what I'm trying to say and I don't know if it'll make sense. If not, I'll make a drawing supporting my point of view.
-
It actually returns nil if I'm right and not false. clanGrid = guiCreateGridList (5,8,392,228,false,clanTab) usernamePlayer = guiGridListAddColumn( clanGrid, "Username", 0.2 ) if getPlayerTeam( localPlayer ) then local team = getPlayerTeam( localPlayer ) for id,players in ipairs(getPlayersInTeam( team )) do local playerTeam = guiGridListAddRow ( clanGrid ) guiGridListSetItemText ( clanGrid, playerTeam, 1, getPlayerName ( players ), false, false ) end end maybe this should work Returns Returns a team element representing the team the player is on, false if the player is not part of a team.