Feche1320

Members
  • Content Count

    449
  • Joined

  • Last visited

Everything posted by Feche1320

  1. Feche1320

    Mysql scape string

    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
  2. Feche1320

    Mysql scape string

    I will try ASAP, thanks
  3. setAmbientSoundEnabled( "general", false ) setAmbientSoundEnabled( "gunfire", false )
  4. Feche1320

    MTA - Fuel System

    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)
  5. Feche1320

    [DM]1thwonder - Interstellar |v4

    Awsome map
  6. Feche1320

    [HELP] How to make a infinite loop function.

    Depends on what you want to do
  7. Feche1320

    [HELP] How to fix this bug in render target?

    If you alt-tab, your render target will become black
  8. 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
  9. Feche1320

    Shaders

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

    Green Candy

    Short long: proyect is dead by now
  11. Feche1320

    Fail check on resource start

    Where does currentRes come from? addNewTime(currentRes, serial, time, name, country)
  12. Feche1320

    Fail check on resource start

    local ResMode = getResourceInfo(res,"gamemode") It's gamemodeS, not gamemode.. local ResMode = getResourceInfo(res,"gamemodes")
  13. Feche1320

    Report system with screenshot support

    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
  14. Feche1320

    Report system with screenshot support

    That just says everything.
  15. Feche1320

    Report system with screenshot support

    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')
  16. Feche1320

    addEventHandler warning

    That's what I did lol
  17. Feche1320

    Make a downloadbar?

    You will have to read files and use triggerClientLatentEvent, hard stuff for your knowledge.
  18. Feche1320

    addEventHandler warning

    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")
  19. Feche1320

    Map finding issues..

    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
  20. Feche1320

    Map finding issues..

    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 )
  21. Feche1320

    Identifying an argument onChatMessage

    Even if you manage to know if it's a resource you can't cancel onChatMessage event..
  22. Feche1320

    Map finding issues..

    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)
  23. Feche1320

    Prevent zombies spawning in the water

    HAHAHAHAHAHAHAHAHAH thanks god that 2014 didn't end yet. You sir, are in the 2014 #1 ranking of stupids persons.
  24. Feche1320

    Prevent zombies spawning in the water

    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?
  25. Feche1320

    [HELP] setElementData

    Use fromJSON and toJSON, way easier than XML.