Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. local dosyfa = "$500" syfik = string.gsub ( dosyfa, "$", "" ) outputChatBox ( syfik ) givePlayerMoney(client, tonumber(syfik) )
  2. Oh I know what. string.gsub returns more than one value, so local dosyfa = "$500" syfik = dosyfa:gsub ( "$", "" ) givePlayerMoney(client, tonumber(syfik) )
  3. outputChatBox ( dosyfa:gsub ( "$", "" ) ) Tell me what it outputs.
  4. local dosyfa = "$500" syfik = tonumber ( dosyfa:gsub ( "$", "" ) ) givePlayerMoney(client, tonumber(syfik) )
  5. Change httpport to another in mtaserver.conf.
  6. http://www.filedropper.com/samp037objects4mtaeditor In editor_main.zip\files
  7. WhoAmI

    Laser

    And I need weed and who the hell cares? No one. Try to make it by your own and if you have a problem - post it here and we will show you a way to do that. You can't get everything you want.
  8. Use getPedBonePosition.
  9. WhoAmI

    Laser

    Everything is wrong.
  10. WhoAmI

    Laser

    Show us your work. I wont do everything for you.
  11. WhoAmI

    Laser

    local x,y,z = 0, 0, 0 -- 1st position local x1,y1,z1 = 5, 5, 5 -- 2nd position addEventHandler ( "onClientRender", root, function ( ) local x, y = getScreenFromWorldPosition ( x, y, z ) local x1, y1 = getScreenFromWorldPosition ( x1, y1, z1 ) dxDrawLine ( x, y, x1, y1, tocolor ( 255, 0, 0, 255 ) end );
  12. WhoAmI

    [HELP] SQLite

    Maybe it's empty.
  13. WhoAmI

    [HELP] SQLite

    Any errors debugscript 3?
  14. Maybe install there some linux distribution there? Like Ubuntu which has nice desktop and good functionality.
  15. WhoAmI

    [HELP] SQLite

    Do you have groubs.db in your resource folder and is it in meta?
  16. WhoAmI

    HELP Table

    markers = { { model, x, y, z, cash }, { model, x, y, z, cash }, { model, x, y, z, cash }, ... } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in pairs ( markers ) do local m = createMarker ( v[2], v[3], v[4] ) setElementData ( m, "model", v[1] ) setElementData ( m, "cash", v[5] ) end end ) addEventHandler ( "onMarkerHit", resourceRoot, function ( hitElement, matchingDimension ) if not ( isElement ( hitElement ) or getElementType ( hitElement ) == "player" or matchingDimension ) then return end if isPedInVehicle ( hitElement ) then local veh = getPedOccupiedVehicle ( hitElement ) if veh then if getElementModel ( veh ) == getElementData ( source, "model" ) then givePlayerMoney ( hitElement, getElementData ( source, "cash" ) ) end end end end )
  17. WhoAmI

    callRemote

    It works, thanks.
  18. dbQuery(ComprobarCuentaEnDB, MYSQL, "INSERT INTO `userdata`(`Cuenta`, `Password`) VALUES (?, ?)", PlayerName, contra) replace to local success = dbExec(ComprobarCuentaEnDB, MYSQL, "INSERT INTO `userdata`(`Cuenta`, `Password`) VALUES (?, ?)", PlayerName, contra) if success then -- correctly else -- error end
  19. WhoAmI

    MTA Vehicle Crash

    Have you installed any car's mod?
  20. WhoAmI

    callRemote

    C'mon man, without callback function I wouldn't know what the error is, mr. Brain.
  21. WhoAmI

    callRemote

    Getting error 405, which means A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource. How can I get this JSON array into my script?
  22. WhoAmI

    callRemote

    Oh thanks, i had to put 'loadCountriesCallback' function before 'loadCountries'. Damn!
  23. WhoAmI

    callRemote

    Hello. I'm trying to get data from .json page local loadCountries = function ( ) callRemote ( "http://country.io/names.json", loadCountriesCallback ); end But the problem is that debug says that argument 2 should be string, but i'm not providing host but URL... WARNING: [jacob]/country/country_s.lua:25: Bad argument @ 'callRemote' [Expected string at argument 2, got nil]
  24. If I have to choose, I'll definitely choose dedicated one. Depends also what would be in this machine.
×
×
  • Create New...