Jump to content

Dreamer

Members
  • Posts

    16
  • Joined

  • Last visited

Dreamer's Achievements

Square

Square (6/54)

0

Reputation

  1. Dreamer

    [HELP]Download Speed

    Also interesting is that this problem which I described appears to some people in that server, but not for all
  2. First of all, I want to appologise if I'm writing in wrong section(can't find needed one). So my problem is Download Speed related. My network speed is normal, and I have Pretty fast download speeds from MTA servers, except from one. Basically meaning in one specific server i get around 2-40 KB/s, but in the other hand on other servers I have fine download speed, for example, 1MB file downloads in aproximately 2 s. Also ping when I'm in server, after slow download, my ping is also fine 40-70ms (its OK joining to servers abroad) The server Im trying to connect isn't mine, it's clan server. And Yes I was contacting server owner about this, he says its not server problem, and I also don't believe its my network. Suposing both server and my network is OK, what could be causing slow download speed? Could it be some kind of limits? If yes what types could it be? What cuold aso be causing slow download serverside and/or clientside? Mentioning one more time. I have slow download speed in ONE specific server, and I'm searching for anything that could cause slow download speed.
  3. Silly mistake (rofl) , , although i made same type of table in .lua(3 level tables, meaning there is table in table) Thanks anyway, didn't thought to validate xml file . Happens sometimes.
  4. Here you go, a part of my script. function ShowWindow() local player = getLocalPlayer() local vehicle = getPedOccupiedVehicle(player) local trailer = getVehicleTowedByVehicle(vehicle) local towedvehicle = getVehicleTowingVehicle ( trailer ) if vehicle then xmlLoaded = xmlLoadFile( "List.xml" ) if xmlLoaded then outputDebugString("trueloading") else outputDebugString("falseloading") end if ( towedvehicle == vehicle ) then if getElementModel(trailer) == 584 then Trailerxml = xmlFindChild( xmlLoaded, "Somenode", 0) guiSetVisible(JOBWindow, true) guiSetInputEnabled(true) showCursor(true) doFunction1() end if getElementModel(trailer) == 435 then Trailerxml = xmlFindChild(xmlLoaded, "Somedifferentnode", 0) guiSetVisible(JOBWindow, true) guiSetInputEnabled(true) showCursor(true) ChooseCargo() end if getElementModel(trailer) == 450 then Trailerxml = xmlFindChild( xmlLoaded, "Anothernode", 0) guiSetVisible(JOBWindow, true) guiSetInputEnabled(true) showCursor(true) doDunction1() end outputChatBox("Trailer is attached") else outputChatBox("Error! Please Attach Your Trailer!") end else outputChatBox("Error! Enter a vehicle, First!") end end addEvent("ShowWindow", true) addEventHandler("ShowWindow",getRootElement(),ShowWindow) As mentioned before, the script is Fine, fully operational only thing what was changed is xml file, and now it doesn't load Also I had tried putting xmlLoadFile function in event "onClientResourceStart",but no results. Also tried putting xml file in different resource, still no results
  5. Hello! So my problem is that i can't load xml file after i edited data in it. It was loading succesfully, but when i replaced it with the file made exactly like previous. Ok it doesn't loads, and i tried putting back my previous xml file, (which WAS working) but it don't work either anymore. Any suggestions?
  6. Moderators, please Close the topic. Problem solved. And Again thanks Anderl for advice
  7. Thanks, now just need to understand what each function do
  8. What functions could be associated with xml? never used so i have no idea and thanks for advice
  9. ok, so tables could be like this Table1 = {"Table1:Data1","Table1:Data2","Table1:Data3",}. I'll try to explain better, but i dont know how to do that. I made up a gui window where is 3 gridlists. when i click on item from 1st gridlist, then it takes table which is ment to that object in 1st gridlist and show up on 2nd gridlist its values. for example: Table1 = {"Table1:Data1","Table1:Data2","Table1:Data3",} TableData1 = {} TableData2 = {} TableData3 = {} for each value in Table1 have thei own table with other values. i'm making a window from wich to choose trucker job - Cargo, location from which have to deliver, and loacation to where to deliver) Can someone give me link to upload screenshots? mine isnt working here Hope this make a better sense.
  10. Hello!, I'm kinda new on this forums, but always look at topics about scripting, before asking. So now i can't find answer to my question. Here is the question: How i can get tables used in order? For example, I want to use tables on gridlist. When i choose item in 1st gridlist(items from Table1), it triggers another table(Table2) to be used in 2nd gridlist, and then when i choose element on 2nd gridlist, it triggers new table(Table3) to be used in 3rd gridlist. every item item in Table 1 (from gridlist) Triggers another table with specific data. I need atlest one way to trigger these tables. I could do with checking which table data been pressed on gridlist with if, but it would take a lot of space. Table1 = { [1] = "Table1:Data1", [2] = "Table1:Data2", [3] = "Table1:Data3", [4] = "Table1:Data4", } Table2 = { [1] = "Table2:Data1", [2] = "Table2:Data2", [3] = "Table2:Data3", [4] = "Table2:Data4", } Table3 = { [1] = "Table3:Data1", [2] = "Table3:Data2", [3] = "Table3:Data3", [4] = "Table3:Data4",, } for key, value in ipairs(Table1) do local rowc = guiGridListAddRow(Gridlist) local ItemText = gettok(value, 1, string.byte(':')) local ItemData = gettok(value, 2, string.byte(':')) outputChatBox(tostring(value)) guiGridListSetItemText(Gridlist,rowc,1,tostring(ItemText),false,false) guiGridListSetItemData(Gridlist,rowc,1,tostring(ItemData)) end i've been using this part of code, with much more tables. Also as you can see i've been using numbers in table data keys, so i could use ipairs() function(i need to show data from tables shown in gridlist in order. Hope you understood my question.
  11. Presenting our made map. Hope you like Skilled Securicar. It's not that easy .
  12. Dreamer

    Car paint

    if i understood correctly then in ( local theAccount = ' ' ) between ' ' i have to put account name?? yes?? and also this script should be client or server side?
  13. Dreamer

    Car paint

    How to bind car colour to specific user account? I'm interested in this script too
  14. I personaly think my map is ok for 7h work in 2 days (with testing) for a map
×
×
  • Create New...