Static-X Posted November 17, 2010 Posted November 17, 2010 (edited) Just guessing, why lua syntax highlighting isn't working? See how it worked here, viewtopic.php?f=91&t=25072#p294527 now here is the quote of the same post, Clientside: bindKey("p", "down", "chatbox", "Admin") -- Admin is chatinput begin. Serverside: function adminCommand(player, command, ...) -- Add a check if he is a admin.. outputChatBox("Admin chat: "..getPlayerName(player)..": "..table.concat({...}," "), getRootElement(), 255, 0, 0, true) end addCommandHandler("Admin", adminCommand) or it only works for devs ? Edited November 29, 2010 by Guest
norby89 Posted November 17, 2010 Posted November 17, 2010 That was posted when syntax highlighting still worked, and it seems it kept all the formatting.
Static-X Posted November 18, 2010 Author Posted November 18, 2010 That is the point, I want to know why it isn't working.
MTA Team Blokker_1999 Posted November 22, 2010 MTA Team Posted November 22, 2010 That is the point, I want to know why it isn't working. Actually, so do I, been doing some looking around and i do not see why it is not working.bbgeshi is installed as it should be.
eAi Posted November 23, 2010 Posted November 23, 2010 I worked out why it's not working, but I'm on holiday now. I'll fix it when I get back in a few days.
Discord Moderators Zango Posted November 29, 2010 Discord Moderators Posted November 29, 2010 return true
Aibo Posted November 29, 2010 Posted November 29, 2010 would be also nice to have "Lua" BBCode button like we have "Code" button :3
dzek (varez) Posted November 29, 2010 Posted November 29, 2010 yup, much easier, and newbies doesnt know about lua tags or code=lua at all. even i didnt know it when i registered (but i've edited my post and saw its working )
Static-X Posted December 1, 2010 Author Posted December 1, 2010 --- test with [lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end ) P/S: Both works for me.. --- test with [code=lua] addCommandHandler("cmd",function(player) outputChatBox(" ",player) end )
norby89 Posted December 1, 2010 Posted December 1, 2010 Humm weird, nevermind then. One of Varez' post contained [lua] tags and wasn't correctly highlighted.
Towncivilian Posted December 1, 2010 Posted December 1, 2010 This topic advising users to use [lua][/lua] doesn't work either, ironically enough.
Aibo Posted December 29, 2010 Posted December 29, 2010 getPlayerTeam is somewhat buggy: code=lua: getPlayerTeam" class="kw2">getPlayerTeam(player) code=text: getPlayerTeam(player)
SDK Posted February 12, 2011 Posted February 12, 2011 Could someone fix this please? getPedClothes is bugged as well getPedClothes() getPedClothes" class="kw2">getPedClothes()
norby89 Posted February 12, 2011 Posted February 12, 2011 Also really long code doesn't show up when used with lua tags (or anything else other than 'text').
12p Posted February 12, 2011 Posted February 12, 2011 yup, getPlayerTeam is buggy. I told it to everyone many times at Scripting Forum -.-
MX_Master Posted July 3, 2011 Posted July 3, 2011 setPlayerTeam still is bugged. plain text setPlayerTeam ( player, Army ) lua setPlayerTeam ( player, Army ) And when this bug will be fixed?
eAi Posted July 3, 2011 Posted July 3, 2011 I'll fix it tomorrow or this evening, if I remember. We really need to update the function list - someone was going to write a script to pull them out of the code... You could even do that in Lua...
MX_Master Posted July 3, 2011 Posted July 3, 2011 I'll fix it tomorrow or this evening, if I remember. We really need to update the function list - someone was going to write a script to pull them out of the code... You could even do that in Lua... I made this script 1-2 moths ago. Named `getGlobalsList`. Link - https://community.multitheftauto.com/index.php?p=resources&s=details&id=2174. I'm using it to generate grouped lists of all MTASA functions for my own syntax highlighter in some editor.
eAi Posted July 3, 2011 Posted July 3, 2011 Well, if you can modify it to generate something like the PHP script linked below, then it'd be great http://pastebin.com/D1Qv77NN Fixed setPlayerTeam.
MX_Master Posted July 4, 2011 Posted July 4, 2011 It's not hard to generete geshi's HL file, i will make it today's evening.
MX_Master Posted July 4, 2011 Posted July 4, 2011 (edited) Well, if you can modify it to generate something like the PHP script linked below, then it'd be great http://pastebin.com/D1Qv77NN Fixed setPlayerTeam. I made special resource named `geshiLuaHLGenerator`, which generates lua_{TIMESTAMP}.php files into own folder after server chat command `/generateGeshiLuaHL`. I think it works on any version from 1.0.4 to latest 1.1. Resource uses template file to generate output files. Latest lua_{TIMESTAMP}.php you can find in resource folder. You can download this resource from here - http://multi-theft-auto.ru/geshiLuaHLGenerator.zip. Template file has some new things like links to lua.org docs for standart lua functions. Order of keyword lists also was changed. Anyway, new generated HL file must be checked for possible errors. Tell me if you will find something wrong. Edited February 26, 2012 by Guest
MX_Master Posted July 7, 2011 Posted July 7, 2011 Can you also add a [lua] / BB codes buttons to post form near [ Code ] button? It's very actual feature.
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