Static-X Posted November 17, 2010 Share 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 Link to comment
norby89 Posted November 17, 2010 Share Posted November 17, 2010 That was posted when syntax highlighting still worked, and it seems it kept all the formatting. Link to comment
Static-X Posted November 18, 2010 Author Share Posted November 18, 2010 That is the point, I want to know why it isn't working. Link to comment
MTA Team Blokker_1999 Posted November 22, 2010 MTA Team Share 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. Link to comment
eAi Posted November 23, 2010 Share 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. Link to comment
dzek (varez) Posted November 23, 2010 Share Posted November 23, 2010 oh rly? thats awesome! Link to comment
Static-X Posted November 29, 2010 Author Share Posted November 29, 2010 Bump: w00t it works Link to comment
Discord Moderators Zango Posted November 29, 2010 Discord Moderators Share Posted November 29, 2010 return true Link to comment
Aibo Posted November 29, 2010 Share Posted November 29, 2010 would be also nice to have "Lua" BBCode button like we have "Code" button :3 Link to comment
dzek (varez) Posted November 29, 2010 Share 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 ) Link to comment
norby89 Posted December 1, 2010 Share Posted December 1, 2010 I noticed that only tags work, [lua] don't. Link to comment
Static-X Posted December 1, 2010 Author Share 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 ) Link to comment
norby89 Posted December 1, 2010 Share Posted December 1, 2010 Humm weird, nevermind then. One of Varez' post contained [lua] tags and wasn't correctly highlighted. Link to comment
Towncivilian Posted December 1, 2010 Share Posted December 1, 2010 This topic advising users to use [lua][/lua] doesn't work either, ironically enough. Link to comment
Aibo Posted December 29, 2010 Share Posted December 29, 2010 getPlayerTeam is somewhat buggy: code=lua: getPlayerTeam" class="kw2">getPlayerTeam(player) code=text: getPlayerTeam(player) Link to comment
SDK Posted February 12, 2011 Share Posted February 12, 2011 Could someone fix this please? getPedClothes is bugged as well getPedClothes() getPedClothes" class="kw2">getPedClothes() Link to comment
norby89 Posted February 12, 2011 Share Posted February 12, 2011 Also really long code doesn't show up when used with lua tags (or anything else other than 'text'). Link to comment
12p Posted February 12, 2011 Share Posted February 12, 2011 yup, getPlayerTeam is buggy. I told it to everyone many times at Scripting Forum -.- Link to comment
MX_Master Posted July 3, 2011 Share Posted July 3, 2011 setPlayerTeam still is bugged. plain text setPlayerTeam ( player, Army ) lua setPlayerTeam ( player, Army ) And when this bug will be fixed? Link to comment
eAi Posted July 3, 2011 Share 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... Link to comment
MX_Master Posted July 3, 2011 Share 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. Link to comment
eAi Posted July 3, 2011 Share 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. Link to comment
MX_Master Posted July 4, 2011 Share Posted July 4, 2011 It's not hard to generete geshi's HL file, i will make it today's evening. Link to comment
MX_Master Posted July 4, 2011 Share 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 Link to comment
MX_Master Posted July 7, 2011 Share Posted July 7, 2011 Can you also add a [lua] / BB codes buttons to post form near [ Code ] button? It's very actual feature. 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