Jump to content

Charlie_Jefferson

Members
  • Posts

    242
  • Joined

  • Last visited

Everything posted by Charlie_Jefferson

  1. I did change em, but it still doesn't show up. Here's the code I've got. rbnames = { ["roadright"] = "Small roadblock", ["helix_barrier"] = "Big Street Roadblock", ["roadworkbarrier1"] = "Sidewalk Roadblock", ["roadbarrier4"] = "Barrier", ["roadbarrier3"] = "Detour sign", ["roadbarrier6"] = "Small barrier" } function cGUI() showCursor(true) toggleAllControls(true) rbsWindow = guiCreateWindow(0.3391,0.2832,0.3125,0.4688,"Roadblock System",true) guiWindowSetSizable(rbsWindow,false) acceptButton = guiCreateButton(0.1075,0.8813,0.3225,0.0854,"Accept",true,rbsWindow) closeButton = guiCreateButton(0.57,0.8813,0.3225,0.0854,"Close",true,rbsWindow) rbsMenu = guiCreateGridList(0.11,0.1292,0.785,0.725,true,rbsWindow) guiGridListSetSelectionMode(rbsMenu,2) guiGridListAddColumn(rbsMenu,"Roadblocks",0.90) for key,rbNames in pairs(rbnames) do local row = guiGridListAddRow ( rbsMenu ) guiGridListSetItemText ( rbsMenu, row, 1, rbnames, false, false ) end for i = 1, 6 do guiGridListAddRow(rbsMenu) end end addCommandHandler("rb", cGUI)
  2. Now the menu doesn't show up at all(the GUI window). Edit: I made it show up, but the gridlist still isn't populated.
  3. The GUI appears, but the gridlist rows aren't filled. The same thing I was trying to achieve a minute ago.
  4. Okay. Thanks for clearing that up. Also, it doesn't work for some reason. I tried copying the spoiler script too.
  5. I know it's written on the wiki. I thought it's different though. This is the scripting section, I can post whatever I want as long as it involves scripting.
  6. rbnames = { ["roadright"] = "Small roadblock", ["helix_barrier"] = "Big Street Roadblock", ["roadworkbarrier1"] = "Sidewalk Roadblock", ["roadbarrier4"] = "Barrier", ["roadbarrier3"] = "Detour sign", ["roadbarrier6"] = "Small barrier" } GUIEditor_Button = {} rbswindow = guiCreateWindow(0.3391,0.2832,0.3125,0.4688,"Roadblock System",true) guiWindowSetSizable(rbswindow,false) accp = guiCreateButton(0.1075,0.8813,0.3225,0.0854,"Accept",true,rbswindow) cls = guiCreateButton(0.57,0.8813,0.3225,0.0854,"Close",true,rbswindow) rbsmenu = guiCreateGridList(0.11,0.1292,0.785,0.725,true,rbswindow) guiGridListSetSelectionMode(rbsmenu,2) guiGridListAddColumn(rbsmenu,"Roadblocks",0.12) for i = 1, 6 do guiGridListAddRow(rbsmenu) end Got this, obviously client-side. I'd like to make it so that the gridlist takes the names from the table, the ones after "=" and use them, as in make the grid list row text to them. How can I do that? Don't edit the script, just tell me how, I'd like to learn myself.
  7. Hai, There was a thing that would be used in if statements, like If blah blah =/ false(isn't false) then do blah blah, but I'm not sure how it was. I'm pretty sure it wasn't =/. It's the opposite of ==.
  8. That'll take too much. I will try it when I've got nothing to do though.
  9. I didn't and I won't try. Takes too long. Instead, I'll try to replace the dff and txd in gta3.img. Might fix it, somehow. Edit: Didn't work.
  10. Solved by reinstalling MTA. Edit: It didn't solve it. It's still there, what the heck? I uninstalled and installed MTA again without loading anything from 1.2!
  11. Hai, I have a pokemon as an AT400 which I don't really know where I got it off. I replaced my gta3.img, I thought the problem's there, didn't work. I deleted every file in MTA San Andreas 1.3 that had at400.txd and at400.dff in it and the pokemon still appears. What am I supposed to do?
  12. Okay. It works. How do I bring the labels together though? One near each other and how do I add "|" 's between them.
  13. It works karthik. The text is above the radar, instead of under it though and if I set it to relative, it won't show up. That happens to my acc-sys too. If I set it to relative, it won't show up.
  14. It's what myonlake posted but a bit edited and failed. Two "source" at triggerServerEvent? Do you even know the basics of scripting...? Still doesn't work, I removed one source too.
  15. Okay, corrected the timer and now the script loads. No errors but nothing's displayed.
  16. Copied myonlake's and it gave me the same errors, but with different lines, of course. Edit: I coped algrab's and it gave me an error at the timer. Expected argument 1, got 1000.
  17. Hi. function check() local acc = getPlayerAccount(thePlayer) local accName = getAccountName(acc) if isObjectInACLGroup("user."..accName, aclGetGroup("admin")) then atype = "admin" pname = getPlayerName(source) triggerClientEvent(source, "infosend", source, accName, atype, pname) end end addEvent("checkinfo", true) addEventHandler("checkinfo", root, check) function createGUI(acc, atype, pname) aname = guiCreateLabel(11,745,96,18,string(acc),false) admtype = guiCreateLabel(135,745,96,18,string(atype),false) nick = guiCreateLabel(280,745,96,18,string(pname),false) end function getinfopl0x () triggerServerEvent("checkinfo", source) end addEvent("infosend", true) addEventHandler("infosend", root, createGUI) addEventHandler("onClientRender", root, getinfopl0x) I get these errors: [2012-04-12 18:23:28] WARNING: adminhud\adminhud_s.lua:3: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [2012-04-12 18:23:28] WARNING: adminhud\adminhud_s.lua:4: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [2012-04-12 18:23:28] ERROR: adminhud\adminhud_s.lua:6: attempt to concatenate local 'accName' (a boolean value) [2012-04-12 18:23:28] Stopping adminhud [2012-04-12 18:23:28] ERROR: Client triggered serverside event checkinfo, but event is not added serverside What's wrong?
  18. Is there a way of getting the position of the vehicle's signal spots, like IRL, where the vehicle make those flashing lights, when going to the right or to the left?
  19. Sorry for this bump, but no one was looking at this and I need it badly.
  20. My post with /createteam was a joke... It is supposed to be desktop(where you access folders, game shortcuts from).
×
×
  • Create New...