-
Posts
925 -
Joined
-
Last visited
Everything posted by norby89
-
It's probably Johnline's server hosted on his home computer.
-
Or you could upgrade to a proper antivirus software.
-
http://www.lua.org/pil/index.html You've got pretty much everything explained there.
-
function GetPosition ( player ) local x, y, z = getElementPosition( player ) outputChatBox("Your Position: "..x..", "..y..", "..z) end addCommandHandler ( "Postion", GetPosition ) You added an extra ". You should work in a text editor that supports syntax highlighting, which makes errors like this easier to spot.
-
Glad someone quoted his post.
-
Steam (after you bought it).
-
[lua][/lua] highlighting
norby89 replied to Static-X's topic in Site/Forum/Discord/Mantis/Wiki related
Also really long code doesn't show up when used with lua tags (or anything else other than 'text'). -
Hope you aren't planning on using it on this forum because it's simply huge.
-
The whole syntax is wrong. http://pastebin.com/U4AU2jUN
-
Just in case anyone needs the opposite of this function: function rgbToHex ( nR, nG, nB ) local sColor = "#" nR = string.format ( "%X", nR ) sColor = sColor .. ( ( string.len ( nR ) == 1 ) and ( "0" .. nR ) or nR ) nG = string.format ( "%X", nG ) sColor = sColor .. ( ( string.len ( nG ) == 1 ) and ( "0" .. nG ) or nG ) nB = string.format ( "%X", nB ) sColor = sColor .. ( ( string.len ( nB ) == 1 ) and ( "0" .. nB ) or nB ) return sColor end
-
It's also short for Ukraine, if there's a clan called US will you ask all players from the United States to change their tag too?
-
Are you running the race gamemode? It's not a default feature.
-
In fact that's quite easy to do: http://www.lua.org/pil/2.5.html tl;dr version: houseData = {} houseData[houseID] = {} houseData[houseID][something] = cake
-
Moved to german section. If you wanna advertise your server in the other section, create another topic in english.
-
setObjectRotation is deprecated, probably kept only for backwards compatibility, setElementRotation is the more generic way of changing something's rotation.
-
viewtopic.php?f=131&t=30514
-
You go through each element in the table and check if the current element is the one you are looking for. NOTE: tables aren't sets, meaning the same element can be in the table multiple times.
-
Sorry I was editing my post read again.
-
Precedency, when you're unsure which expressions get evaluated first use paranthesis. "not string" will always be false