Jump to content

demojoel

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by demojoel

  1. Thanks for the help! Will try these.
  2. The server has 100 FPS selected.
  3. Not sure if this is the correct place for this post, but oh well... Recently I have been having issues with a server. The server keeps lagging to the point nothing works in game. I have found out it's a problem with the CPU, and not the network. The CPU is a quad core hyper threaded, and the problem is... When the server is running, sometimes 1/8 of the cores hits 100% and the server just lags out in which then the server will need to be stopped and then started again. I have tried a backup before it started and it still happens, so it's not a script issue. Many thanks.
  4. Ok, thanks for the quick reply.
  5. I was wondering, now that we're in 2013 does getRealTime() support 2013 because it is currently causing a lot of problems for me.
  6. Ahh, now i see... i will try this out. Thanks for the help!
  7. Hello, today I have been having a problem with the dxDrawText & dxDrawRectangle. I assign a button to trigger a function which looks similar to this: local screenX, screenY = guiGetScreenSize() function example () dxDrawText(getElementData(resourceRoot, "server:1") or "", screenX / 2 + 220, screenY / 2 - 220, 20, 120, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "top", true, false) dxDrawText(getElementData(resourceRoot, "server:2") or "", screenX / 2 + 220, screenY / 2 - 200, 20, 120, tocolor(255, 255, 255, 255), 0.9, "default-bold", "center", "top", true, false) dxDrawText(getElementData(resourceRoot, "server:3") or "", screenX / 2 + 220, screenY / 2 - 180, 20, 120, tocolor(255, 255, 255, 255), 0.9, "default-bold", "left", "top", true, true) end Once pressed, the text appears for about 0.01 milliseconds then disappears. I have never encounted this problem before, If anyone has a solution to this, it will be much appreciated.
  8. Is it possible to link 2 servers to 1 database? If so how?
  9. What do you mean by that?
  10. Is this correct? function removeWorldModel() removeWorldModel(1260,200,615,-1509,30) -- Billboard removeWorldModel(0,200,615,-1509,30) -- Billboard end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), removeWorldModel)
  11. What is the "float x, float y, float z" used for in removeWorldModel?
  12. Does anyone have a script that can go to an X Y Z position?
  13. demojoel

    SQL help

    Hey guys, i'm having a little problem with the sql making the 'ID' column. **Problem Solved**
  14. How would I change a vehicles handling, so i can edit the settings like the speed. Would i have to import this the same as the TXD and DFF?
  15. Will do, thanks for the help anyway
  16. It looks like it deletes part of the bridge but the texture is still there, i might need to add the LOD object.
  17. I'm not sure, function removeobject() removeWorldModel(10821, 2000, -1292.48046875, 938.3876953125, 52.886108398438) -- Bridge Test end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), removeobject) That doesn't work, the bridge isn't removing.
  18. I'm testing the function on the SF bridge, I know how to delete objects one by one, but I'd like to delete the whole bridge in one go, I did it once, but I can't remember how to do it again. The Function so far: (Some parts of the code might not even be needed) function removeobject() removeWorldModel(10821, 2000, -1292.48046875, 938.3876953125, 52.886108398438) -- Bridge Test end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), removeobject) for i=10821,10000 do removeWorldModel(i,2000,-1292.48046875, 938.3876953125, 52.886108398438) end function restoreall() restoreAllWorldModels() end addCommandHandler("rawo", restoreall)
  19. I finally got the GUI working. The problem I have now is other are able to write in a guiCreateMemo box, is there any way to stop this?
  20. demojoel

    GUI Help

    Got it to work, thanks any way!
  21. demojoel

    GUI Help

    I got the GUI to show, but i'm guessing its not connecting up to the SQL, as I can't login or register.
  22. demojoel

    GUI Help

    addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Radio = {} GUIEditor_Grid = {} GUIEditor_TabPanel[1] = guiCreateTabPanel(368,87,636,536,false) GUIEditor_Tab[1] = guiCreateTab("Login/Register Panel",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(45,104,86,18,"Account Name:",false,GUIEditor_Tab[1]) GUIEditor_Label[2] = guiCreateLabel(25,137,105,18,"Account Password:",false,GUIEditor_Tab[1]) GUIEditor_Edit[1] = guiCreateEdit(134,102,116,21,"",false,GUIEditor_Tab[1]) GUIEditor_Edit[2] = guiCreateEdit(134,135,116,21,"",false,GUIEditor_Tab[1]) GUIEditor_Radio[1] = guiCreateRadioButton(64,166,16,18,"",false,GUIEditor_Tab[1]) GUIEditor_Label[3] = guiCreateLabel(91,166,80,17,"Remember Me",false,GUIEditor_Tab[1]) GUIEditor_Radio[2] = guiCreateRadioButton(64,187,16,18,"",false,GUIEditor_Tab[1]) guiRadioButtonSetSelected(GUIEditor_Radio[2],true) GUIEditor_Label[4] = guiCreateLabel(91,187,92,18,"Automatic Login",false,GUIEditor_Tab[1]) GUIEditor_Button[1] = guiCreateButton(32,213,250,42,"Login",false,GUIEditor_Tab[1]) GUIEditor_Label[5] = guiCreateLabel(77,6,488,44,"Welcome to Oracle Gaming",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"sa-header") GUIEditor_Memo[1] = guiCreateMemo(321,130,286,350,"New Login System - We now have a new login system which is brand new.\n\n\nToken System - The all new donation system is almost coming to an end ready for testing.\n\n\nReport System - Planning a new GUI for t",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(422,109,94,17,"News & Updates:",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Edit[3] = guiCreateEdit(134,316,116,21,"Memorable Name",false,GUIEditor_Tab[1]) GUIEditor_Edit[4] = guiCreateEdit(134,368,116,21,"********",false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(45,317,86,18,"Account Name:",false,GUIEditor_Tab[1]) GUIEditor_Label[8] = guiCreateLabel(25,370,105,18,"Account Password:",false,GUIEditor_Tab[1]) GUIEditor_Label[9] = guiCreateLabel(130,75,35,16,"Login:",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(32,439,250,42,"Register",false,GUIEditor_Tab[1]) GUIEditor_Edit[5] = guiCreateEdit(134,400,116,21,"********",false,GUIEditor_Tab[1]) GUIEditor_Label[10] = guiCreateLabel(28,402,105,18,"Confirm Password:",false,GUIEditor_Tab[1]) GUIEditor_Label[11] = guiCreateLabel(130,289,54,16,"Register:",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[11],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Staff (Server & Forum)",GUIEditor_TabPanel[1]) GUIEditor_Label[12] = guiCreateLabel(235,37,160,18,"Oracle Gaming Server Staff",false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Memo[2] = guiCreateMemo(37,416,561,74,"Here at Oracle Gaming MTA Roleplay we try to have the best quality roleplay throughout the server. We choose our admins with care so we retain out high standard of help to our players, even if it's just a question use F2. If you think in anyway an admin has breached their rights, don't hesitate to contact high administration through the forums.",false,GUIEditor_Tab[2]) GUIEditor_Grid[1] = guiCreateGridList(38,77,560,298,false,GUIEditor_Tab[2]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Account Name",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Forum Name",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Administrator Rank",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"Gamemaster Rank",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"APC Access",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"") guiGridListSetItemText(GUIEditor_Grid[1],1,1,"brocily") guiGridListSetItemText(GUIEditor_Grid[1],0,2,"") guiGridListSetItemText(GUIEditor_Grid[1],1,2,"brocily") guiGridListSetItemText(GUIEditor_Grid[1],0,3,"") guiGridListSetItemText(GUIEditor_Grid[1],1,3,"10") guiGridListSetItemText(GUIEditor_Grid[1],0,4,"") guiGridListSetItemText(GUIEditor_Grid[1],1,4,"0") guiGridListSetItemText(GUIEditor_Grid[1],0,5,"") guiGridListSetItemText(GUIEditor_Grid[1],1,5,"Yes") end )
×
×
  • Create New...