Jump to content

XetaQuake

Members
  • Posts

    561
  • Joined

  • Last visited

Everything posted by XetaQuake

  1. I don´t think you would give him $50...its his time and when 50p don´t have so many time i fully understand the problem... he said Maybe. When you creates a script, don´t see the problem befor you release it and then you have no time to fix it, what do you making? So, i just hope for a new version
  2. nice to hear that you have the same problem, so i am not alone, lol i am a beginner in lua, i don´t know how i can fix that ;/
  3. Now i tested a little bit, and i found a strange problem. First, the code: wndMain = { 'wnd', text = 'Spieleverwaltung', x = 10, y = 175, width = 320, controls = { {'lbl', text='Spielereinstellungen'}, {'br'}, {'btn', id='Selbstmord', onclick=killLocalPlayer}, {'btn', id='Model', window=wndSkin}, --{'btn', id='weapon', window=wndWeapon}, {'btn', id='Klamotten', window=wndClothes}, {'btn', id='playergrav', text='Gravitation', window=wndGravity}, {'btn', id='Gehe zu', window=wndWarp}, {'btn', id='Statistik', window=wndStats}, {'br'}, {'chk', id='Jetpack', onclick=toggleJetPack}, {'chk', id='falloff', text='Vom Motorrad fallen', onclick=toggleFallOffBike}, {'br'}, {'lbl', text='Pos:'}, {'lbl', id='xpos', text='x', width=50}, {'lbl', id='ypos', text='y', width=50}, {'lbl', id='zpos', text='z', width=50}, {'btn', id='setpos', text='Weltkarte', window=wndSetPos}, {'br'}, {'br'}, {'lbl', text='Fahrzeug'}, {'br'}, {'lbl', text='Aktuell:'}, {'lbl', id='curvehicle'}, {'br'}, {'btn', id='createvehicle', window=wndCreateVehicle, text='Erstellen'}, {'btn', id='Reparieren', onclick=repairVehicle}, {'btn', id='Aufrichten', onclick=flipVehicle}, {'btn', id='Aufmotzen', window=wndUpgrades}, {'btn', id='Farbe', window=wndColor}, {'btn', id='Farbmuster', window=wndPaintjob}, {'br'}, {'chk', id='lightson', text='Lichter an', onclick=forceLightsOn}, {'chk', id='lightsoff', text='Lichter aus', onclick=forceLightsOff}, {'br'}, {'br'}, {'lbl', text='Weltweit'}, {'br'}, {'btn', id='Zeit', window=wndTime}, {'btn', id='Wetter', window=wndWeather}, --{'btn', id='speed', window=wndGameSpeed} [color=#FF8000]{'btn', id='Berichten', onclick=testbutton},[/color] }, oncreate = mainWndShow, onclose = mainWndClose } This is the MainWindow, can you see the orange line (at the end)? This is the button. When it press it, "testbutton" should be launched. Now, testbutton: function testbutton() outputChatBox('it works', 0, 255, 0) end This is the testbutton function for onclick=testbutton Now when i press the button "Berichten" in the MainWindow, it should give me a outputChatBox. but nothing happens! not on my homeserver and not on the realserver. Any ideas? (debugscript 3 give me nothing!) (the MainWindow code is from the Freeroam GUI [fr_client.lua])
  4. 1. in the resource "admin" there is the function to open the report window 3. aReport - the function to open the report window 4. now changed to onClientResourceStart (but don´t work) Very good idea, i tested it: --------------------------- -- Report window toggle --------------------------- function openAdminReport() --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_report.lua * * Original File by lil_Toady * **************************************]] aReportForm = nil function aReport ( player ) if ( aReportForm == nil ) then local x, y = guiGetScreenSize() aReportForm = guiCreateWindow ( x / 2 - 150, y / 2 - 150, 300, 300, "Contact Admin", false ) guiCreateLabel ( 0.05, 0.11, 0.20, 0.09, "Category:", true, aReportForm ) guiCreateLabel ( 0.05, 0.21, 0.20, 0.09, "Subject:", true, aReportForm ) guiCreateLabel ( 0.05, 0.30, 0.20, 0.07, "Message:", true, aReportForm ) aReportCategory = guiCreateEdit ( 0.30, 0.10, 0.65, 0.09, "Question", true, aReportForm ) guiEditSetReadOnly ( aReportCategory, true ) aReportDropDown = guiCreateStaticImage ( 0.86, 0.10, 0.09, 0.09, "client\\images\\dropdown.png", true, aReportForm ) guiBringToFront ( aReportDropDown ) aReportCategories = guiCreateGridList ( 0.30, 0.10, 0.65, 0.30, true, aReportForm ) guiGridListAddColumn( aReportCategories, "", 0.85 ) guiSetVisible ( aReportCategories, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Question", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Suggestion", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Cheater/Moder", false, false ) guiGridListSetItemText ( aReportCategories, guiGridListAddRow ( aReportCategories ), 1, "Other", false, false ) aReportSubject = guiCreateEdit ( 0.30, 0.20, 0.65, 0.09, "", true, aReportForm ) aReportMessage = guiCreateMemo ( 0.05, 0.38, 0.90, 0.45, "", true, aReportForm ) aReportAccept = guiCreateButton ( 0.40, 0.88, 0.25, 0.09, "Send", true, aReportForm ) aReportCancel = guiCreateButton ( 0.70, 0.88, 0.25, 0.09, "Cancel", true, aReportForm ) addEventHandler ( "onClientGUIClick", aReportForm, aClientReportClick ) addEventHandler ( "onClientGUIDoubleClick", aReportForm, aClientReportDoubleClick ) end guiBringToFront ( aReportForm ) showCursor ( true ) end addCommandHandler ( "report", aReport ) function aReportClose ( ) guiSetInputEnabled ( false ) if ( aReportForm ) then removeEventHandler ( "onClientGUIClick", aReportForm, aClientReportClick ) removeEventHandler ( "onClientGUIDoubleClick", aReportForm, aClientReportDoubleClick ) destroyElement ( aReportForm ) aReportForm = nil showCursor ( false ) end end function aClientReportDoubleClick ( button ) if ( button == "left" ) then if ( source == aReportCategories ) then if ( guiGridListGetSelectedItem ( aReportCategories ) ~= -1 ) then local cat = guiGridListGetItemText ( aReportCategories, guiGridListGetSelectedItem ( aReportCategories ), 1 ) guiSetText ( aReportCategory, cat ) guiSetVisible ( aReportCategories, false ) end end end end function aClientReportClick ( button ) if ( source == aReportCategory ) then guiBringToFront ( aReportDropDown ) end if ( source ~= aReportCategories ) then guiSetVisible ( aReportCategories, false ) end if ( button == "left" ) then if ( source == aReportAccept ) then if ( ( string.len ( guiGetText ( aReportSubject ) ) < 1 ) or ( string.len ( guiGetText ( aReportMessage ) ) < 5 ) ) then aMessageBox ( "error", "Subject/Message missing." ) else aMessageBox ( "info", "Your message has been submited and will be processed as soon as possible." ) setTimer ( aMessageBoxClose, 3000, 1, true ) local tableOut = {} tableOut.category = guiGetText ( aReportCategory ) tableOut.subject = guiGetText ( aReportSubject ) tableOut.message = guiGetText ( aReportMessage ) triggerServerEvent ( "aMessage", getLocalPlayer(), "new", tableOut ) aReportClose () end elseif ( source == aReportSubject ) then guiSetInputEnabled ( true ) elseif ( source == aReportMessage ) then guiSetInputEnabled ( true ) elseif ( source == aReportCancel ) then aReportClose () elseif ( source == aReportDropDown ) then guiBringToFront ( aReportCategories ) guiSetVisible ( aReportCategories, true ) end end end end and here is the complete code with gui for the button etc: http://pastebin.com/m2bad56db and again, it works on MY WinXP Home-test-Server, but not on the Real server i am realy wondering why all changes work on my testserver, and not on the real server When i press the button to open the function, nothing happens ON THE REAL SERVER its that a chache problem on my side or so? i tried already to delete the chache. Can you pleas connect to the server (see @ signatur) and press F1, then on the button "Berichten"
  5. I am the biggest HL2 (and valve) fanboy in the galaxy PS: i was right
  6. thanks for help, nice function it works on my homeserver, but NOT on the real server (again) ;( i tested 3 variants: 1. local localPlayer = getLocalPlayer ( ) function openAdminReport() addEventHandler( "onClientResourceStart", getResourceRootElement( admin() ), aReport ) end 2. local localPlayer = getLocalPlayer ( ) function openAdminReport() addEventHandler( "onClientResourceStart", getResourceRootElement( admin() ), aReport ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), openAdminReport ) 3. local localPlayer = getLocalPlayer ( ) function openAdminReport() addEventHandler( "onClientResourceStart", getResourceRootElement( admin() ), aReport ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), openAdminReport ) but nothing works on the real server, but on my testserver all 3 variants works perfektly befor i uploading new resources i test it on my homeserver, so the homeserver have pretty the same resource as the real server any ideas? //EDIT: i checked all script files from this resource with the files on my PC, there a absolutly the same! (checked by bytes [e.g 37.381 Bytes]) any ideas?
  7. i think he says it because dp3 will be released soon
  8. ah ok, but i don´t know how i made this, how it works? addEventHandler ( "onResourceStart", getResourceRootElement([color=#FFBF00]admin[/color](), [color=#FFBF00]report function in admin resource[/color] ) is that right? i don´t know it
  9. nice idea but the gui script i client-side, and a call only works with server-side script ;/
  10. the function is part of a gui thanks Borov i added this line: addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), openAdminReport ) And it works, BUT only on my Homeserver (Windows XP), and not on the real server (Windows Server 2003) Here is the complete code: --------------------------- -- Report window toggle --------------------------- local localPlayer = getLocalPlayer ( ) function openAdminReport() executeCommandHandler( "report", localPlayer ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), openAdminReport ) and a part of the gui, to show you the Button: {'btn', id='Contact', onclick=openAdminReport}, i allowed executeCommandHandler for 'Defaults' group too. It works on MY home Server when i press the button, it called /report But not on the real Server //EDIT: /debugscript 3 says nothing any ideas?
  11. Hi community i tested a long time with executeCommandHandler, but it still don´t work. i need it as a client-side script local localPlayer = getLocalPlayer ( ) function openAdminReport() executeCommandHandler( "report", localPlayer ) end any ideas what is wrong with this code?
  12. Good to hear that you don´t stopping developing
  13. I tested it. It´s realy nice! But one think is strange, by me it works perfectly, no crashes etc. but by a few other players, long not all, but a few, the game crashes when there drive/fly in the marker.
  14. I found a bug again ^^ (it´s good so it´s bug free when you fixed it ) On every marker on the server i get gas! and when i don´t in a verhicle it says "go in a vehicle first (or so)"
  15. i have a idea: the money goes up to 1000 in minus when you don´t have enough money
  16. yea i mean on far distance Nice, i am happy about a new version, BTW: i added you
  17. you mean function updateList(newEntry, newStatus) chattingPlayers[newEntry] = newStatus if(not chatIconFor[newEntry]) then chatIconFor[newEntry] = guiCreateStaticImage(0, 0, guix, guiy, "chatbubble.png", false ) end guiSetVisible(chatIconFor[player], false) end right? but then when i press ENTER to send the message, the chat icon don´t go away
  18. found BIG bug: with the Freeroam GUI its not possibly to teleport because then the fuel have 0% !
  19. then this? function updateList(newEntry, newStatus) chattingPlayers[newEntry] = newStatus if(not chatIconFor[newEntry]) then chatIconFor[newEntry] = guiCreateStaticImage(0, 0, guix, guiy, "chatbubble.png", false ) end function showTextIcon() local playerx,playery,playerz = getElementPosition ( getLocalPlayer() ) for player, truth in pairs(chattingPlayers) do guiSetVisible(chatIconFor[player], false) end don´t work too.
  20. hm now i have: function updateList(newEntry, newStatus) chattingPlayers[newEntry] = newStatus if(not chatIconFor[newEntry]) then chatIconFor[newEntry] = guiCreateStaticImage(0, 0, guix, guiy, "chatbubble.png", false ) end guiSetVisible(chatIconFor[player], false) end but when i press ENTER to send the message, the chat icon don´t go away
  21. I used the old kchaticons version many weeks, now i replaced the code you have posted and the problem appears, DazzaJay have the same problem (i don´t downloaded the new version that DazzaJay have uploaded on community.multitheftauto.com, i replaced it myself [and with DazzaJay´s version the problem is the same]) so its very implausible that the problem don´t come from your fix
  22. Hi, there is a bug in the traffic fix, now sometimes the chat icons don´t go away when the player there chating go out of the display, the chat icon are on the side of the display screen from bug: i hope someone can fix this pleas
  23. i thank you! works perfect! very good fix thanks
  24. Well on your germen server you have a chat icon thingy. ah yes but that is the "original version", tma postet a code that's better for server traffic but i don´t know how i have to place it, same as DazzaJay that's it
×
×
  • Create New...