joaosilva099

Members
  • Content Count

    199
  • Joined

  • Last visited

Community Reputation

3 Neutral

2 Followers

About joaosilva099

  • Rank
    Chump
  • Birthday May 3

Details

  • Gang
    STORM RPG
  • Location
    Portugal
  • Occupation
    School, programming and server managing
  • Interests
    Programming, Playing games, Hanging out

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. bro can u give me your Face Book i want talk with u

     

  2. This happens in every server: When a stream is playing, the FPS drops. I can stay at the server FPS cap when not playing any sound (60 FPS) easlily, but when a stream is playing, the FPS drop dramatically (like from 60 to around 40). What is this related to?
  3. Hey, so, what I have today is not a problem, I just want to ask some questions... First of all, I have a server with unlimited bandwidth access, so, would I get more performance of my MTA server (talking about sync, etc...) if I set the bandwidth reduction to "none". Or it won't make a big difference? What does the bandwidth reduction setting actually "optimize" in "medium" mode? And on "maximum" mode? Thanks in advance
  4. joaosilva099

    Help

    pv = {} sp = {} spawners = { [1] = {1541.1, -1693.67, 13.55,255, 255, 255,600, 0}, } addEventHandler("onResourceStart", resourceRoot, function () for i,v in pairs(spawners) do local marker = createMarker(v[1], v[2], v[3]-1, "cylinder", 1.5, v[4], v[5], v[6], v[7]) setElementData(marker, "spawner>ID", i) addEventHandler("onMarkerHit", marker, onMarkerHit) addEventHandler("onMarkerLeave", marker, onMarkerLeave) end end) function createTheVehicle(id, posx, posy, posz, player) if(isElement(pv[player])) then destroyElement(pv[player]) end local posx, posy, posz, rotation = spawners[sp[player]][1], spawners[sp[player]][2], spawners[sp[player]][3], spawners[sp[player]][8] sp[player] = false pv[player] = createVehicle(id, posx, posy, posz + 1, 0, 0, rotation) warpPedIntoVehicle(player, pv[player]) if(getTeamName(getPlayerTeam(player)) == "Staff") then addVehicleUpgrade(pv[player], 1010) end end addEvent("crVeh", true) addEventHandler("crVeh", getRootElement(), createTheVehicle) -- function onMarkerHit(hitElement) if(getElementType(hitElement) == "player") then triggerClientEvent(hitElement, "markerHitted", getRootElement()) sp[hitElement] = getElementData(source, "spawner>ID") end end function onMarkerLeave(leftElement) if(getElementType(leftElement) == "player") then triggerClientEvent(leftElement, "markerLeaved", getRootElement()) end end
  5. joaosilva099

    Help

    pv = {} spawners = { posX, posY, posZ, R, G, B, Alpha {1541.1, -1693.67, 13.55,255, 255, 255,600} } addEventHandler("onResourceStart", resourceRoot, function () for i,v in pairs(spawners) do local marker = createMarker(tostring(v[1]), tostring(v[2]), tostring(v[3])-1, "cylinder", 1.5, tostring(v[4]), tostring(v[5]), tostring(v[6]), tostring(v[7])) setElementData(marker, "spawner>ID", i, false) addEventHandler("onMarkerHit", marker, onMarkerHit) addEventHandler("onMarkerLeave", marker, onMarkerLeave) end end) function createTheVehicle(id, posx, posy, posz, player) if(isElement(pv[player])) then destroyElement(pv[player]) end local posx, posy, posz = spawners[getElementData(client, "spawner>ID")][1], spawners[getElementData(client, "spawner>ID")][2], spawners[getElementData(client, "spawner>ID")][3] setElementData(client, "spawner>ID", false, false) pv[player] = createVehicle(id, posx, posy, posz + 1) warpPedIntoVehicle(player, pv[player]) if(getTeamName(getPlayerTeam(player)) == "Staff") then addVehicleUpgrade(pv[player], 1010) end end addEvent("crVeh", true) addEventHandler("crVeh", getRootElement(), createTheVehicle) -- function onMarkerHit(hitElement) if(getElementType(hitElement) == "player") then triggerClientEvent(hitElement, "markerHitted", getRootElement()) setElementData(hitElement, "spawner>ID", getElementData(source, "spawner>ID"), false) end end function onMarkerLeave(leftElement) if(getElementType(leftElement) == "player") then triggerClientEvent(leftElement, "markerLeaved", getRootElement()) setElementData(hitElement, "spawner>ID", false, false) end end
  6. Nevermind, it's a bug from MTA... I worked around using an older version, before they add this check for positive and negative numbers
  7. What sort of data is "negative" and "positive"? And therefore... The query is ok! I checked the db logs and it says success and it's showing the right results, but I can't use dbPoll with it on the scripts... I am using MySQL, could it be with a dll or something? EDIT: I found out, maybe "negative" and "positive" refers to the second argument on dbPoll, but it must be negative, it says on the wiki, to wait until the result is ready use -1 dbPoll(q, -1)
  8. Ok, Dealman GTFO of here if you don't want to help. You know everything so you will never need help. You ended up earning one more person that will never help you. This was happening when there were about 2 or 3 players not logged in (downloading resources from the HTTP server). I ended up solving this by myself. /lock please.
  9. the machine is the server machine. I mean the Computer where the server is running. Is it that hard to understand?
  10. Errors are not a problem, it seems to be the new players download to cause the server FPS Sync drop. WHen there are no new players downloading the things the FPS sync is normal
  11. I mean a better server machine, better hardware resources
  12. Maybe a better machine would handle it better?
  13. Yes, I can feel this happening when someone new joins and is downloading the things.