Jump to content

Feche1320

Members
  • Posts

    461
  • Joined

  • Last visited

Everything posted by Feche1320

  1. setAmbientSoundEnabled( "general", false ) setAmbientSoundEnabled( "gunfire", false )
  2. If I have a string with 'ilegal' characters, Mysql throws an error (1064) local name = getPlayerName(source) -- Let's say that the string returned by getPlayerName is Fe'che dbExec(db, "UPDATE stats SET anyvalue = '" ..name.. "'") I tried with gsub -> name:gsub("\'", "\''"), but no success
  3. You are posting client side scripts, if it's a fuel system, the server-side scripts do the math to 'lower' fuel, so go check server side scripts for any errors (you can use /debugscript 3)
  4. If you alt-tab, your render target will become black
  5. Hello, is there any way to allow the in-game web browser to load any page? for example, when I enter on Gmail, the mail images don't load. Thanks
  6. Feche1320

    Shaders

    viewtopic.php?f=91&t=82511
  7. Feche1320

    Green Candy

    Short long: proyect is dead by now
  8. Where does currentRes come from? addNewTime(currentRes, serial, time, name, country)
  9. local ResMode = getResourceInfo(res,"gamemode") It's gamemodeS, not gamemode.. local ResMode = getResourceInfo(res,"gamemodes")
  10. If you want an un-optimized server, then go ahead I just tried to help you in another way, take it or leave it. Next week you will be asking why your server lags when loading reports, gl
  11. Do as the guy said, store just the references.. what Ciber said is wrong.. you could do something like INSERT INTO yourtablename VALUES ('reportedaccount', 'reportreason', 'pathtoscreenshot')
  12. You will have to read files and use triggerClientLatentEvent, hard stuff for your knowledge.
  13. local event = false addCommandHandler("turnOffMapInfo", function() if not event then addEventHandler("onClientRender", root, MapInfo) else removeEventHandler("onClientRender", root, MapInfo) end event = not event end ) bindKey("F3", "down", "turnOffMapInfo")
  14. if ClanWar.General.MapRotationInfo[nC + 1] then smt = string.split(ClanWar.General.MapRotationInfo[nC + 1][1]) local i = interpolateBetween(0,0,0,#smt,0,0,progress, "Linear") local i = math.floor(i) dxDrawText("1."..(smt[1+i] or "")..(smt[2+i] or "")..(smt[3+i] or "")..(smt[4+i] or "")..(smt[5+i] or "")..(smt[6+i] or "")..(smt[7+i] or "")..(smt[8+i] or "")..(smt[9+i] or "")..(smt[10+i] or ""), x*0.025, y*0.5, x*0.2, y*0.525, tocolor(255,255,255,255), 0.5, "bankgothic", "left", "center") else dxDrawText("1. No Map Selected", x*0.025, y*0.5, x*0.2, y*0.525, tocolor(255,255,255,255), 0.5, "bankgothic", "left", "center") end That should work, btw if you have errors show us the full script
  15. addCommandHandler("as", function(player, cmd, ...) local parts = table.concat({ ... }, " ") for i, v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName( "race" ))) do local name = getResourceInfo(v,"name") if name then if string.find(name:lower(), parts:lower(), 1, true) then -- Your code here end end end end )
  16. Even if you manage to know if it's a resource you can't cancel onChatMessage event..
  17. addCommandHandler("as", function(player,cmd,mapstring) for i,v in ipairs(exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName( "race" ))) do local name = getResourceInfo(v,"name") if name then if string.find(mapstring:lower(), name:lower(), 1, true) then outputChatBox(name) end end end end)
  18. HAHAHAHAHAHAHAHAHAH thanks god that 2014 didn't end yet. You sir, are in the 2014 #1 ranking of stupids persons.
  19. Destroying the ped after spawn is a 'fast fix', why don't you look at the main problem instead? How does your script use the function createZombie?
  20. Use fromJSON and toJSON, way easier than XML.
×
×
  • Create New...