Jump to content

Eshtiz

Members
  • Content Count

    74
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Eshtiz

  • Rank
    Transformer

Details

  • Gang
    .2
  1. Eshtiz

    limit

    I like what you did there, very clever, but sadly it doesn't work it still lets people set above 1500
  2. Eshtiz

    limit

    The fields to the right, people can enter any amount in the field, I only want it possible to set it to 1500 as max. Is that better?
  3. Eshtiz

    limit

    The number 1500, Draken. As 'Wage' sets their pay slips / pay, the leaders of a faction can set it to whatever they want as there is no limit on it. I'm kinda trying to set a limit so 1500$ is the max number that can be set in the "Edit"
  4. Eshtiz

    limit

    I mean here, tRankWages[i] = guiCreateEdit(0.775, y, 0.2, 0.04, tostring(arrFactionWages[i]), true, wRanks) ( line 30-31 on first post ) I'm trying to add a limit to it, 0-1500 so people can't put more than 1500 in it.
  5. Eshtiz

    limit

    Hi, I'm trying to set a limit on 'wage' on guiCreateEdit So I'm trying to set the limit to 0-1500 and nothing above but how? -- RANKS/WAGES lRanks = { } tRanks = { } tRankWages = { } wRanks = nil bRanksSave, bRanksClose = nil function btEditRanks(button, state) if (source==gButtonEditRanks) and (button=="left") and (state=="up") then local factionType = tonumber(getElementData(theTeam, "type")) lRanks = { } tRanks = { } tRankWages = { } guiSetInputEnabled(true) if (factionType==2) or (factionType==3)
  6. Thank you but what did you do? I have similar errors I'm trying to fix EDIT:nvm
  7. It gives an error on line 261: attempt to compare number with nil whole command stopped working line: 16 here (only posted function) function getNearbyVehicles(thePlayer, commandName) if (exports.global:isPlayerAdmin(thePlayer)) then outputChatBox("Nearby Vehicles:", thePlayer, 255, 126, 0) local count = 0 for index, nearbyVehicle in ipairs( exports.global:getNearbyElements(thePlayer, "vehicle") ) do local thisvehid = getElementData(nearbyVehicle, "dbid") local vehicleID = getElementModel(nearbyVehicle) local
  8. Eshtiz

    Chat issue(s)

    In a definied team (faction), everyone who's in that faction will be able to see it PLUS nearby people, just like a radio and a required radio/item to use /f (factionOOC)
  9. Eshtiz

    Chat issue(s)

    Hello ( Again ), I've been trying to fix an unique feature but it keeps failing and disables all other chats and puts them together (classic MTA chat or whatever). I'm trying to make this chat into a radio: function factionOOC(thePlayer, commandName, ...) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then if not (...) then outputChatBox("SYNTAX: /" .. commandName .. " [Message]", thePlayer, 255, 194, 14) else local theTeam = getPlayerTeam(thePlayer) local theTeamName = getTeamName(theTeam)
  10. Sorry, it's not and I quite don't understand what you mean Draken, the very same 'line' is exactly the same on two different places in the whole script which is here: http://pastie.org/3409430 It's quite big.
  11. Well, the topic says it all, dxDrawImage can't load file error from /debugscript dxDrawRectangle( x, y, columns * sbox + spacer, rows * sbox + spacer, background_color ) for i = 1, columns * 5 do local col = math.floor( ( i - 1 ) / 5 ) local row = ( i - 1 ) % 5 local boxx = x + col * sbox + spacer local boxy = y + row * sbox + spacer local item = inventory[ i ] if item then
  12. Eshtiz

    Weird issue

    I do understand most parts of the script, I just don't see where the problem lays at. It do not say anything at all in debugscript 3, and yes, the script is "wired" to my mySQL database in order to make the script function-able. Everything works, every vehicle that should show up in the list shows, it just doesn't let people buy all of them. It is somehow connected to the other vehicle shop, EVEN if I turn it off it's the same problem, I have absolutely no idea where to start looking nor how to fix it.
  13. Eshtiz

    Weird issue

    I have this weird issue regarding Valhalla's carshop & Vedic's. For some reason I can only use The vedic shop because the Valhalla one ONLY sells vehicles that Vedic's car shop "chooses", random vehicles from time to time. I've checked thru every single line and I haven't found anything at all yet. This is Valhalla's, client: local rc = 10 local bike = 15 local low = 25 local offroad = 35 local sport = 100 local van = 50 local bus = 75 local truck = 200 local boat = 300 -- except dinghy local heli = 500 local plane = 750 local race = 75 local vehicleTaxes = { offroad,
  14. Eshtiz

    Problemo - HUD

    Still have the same problem also noticed that the clock/watch doesn't show either after a relog/login/reconnect. local screenX, screenY = guiGetScreenSize() local screenXStart = screenX - screenX local screenYStart = screenY - screenY function drawBox( ) if getElementData(getLocalPlayer(), "loggedin") == 1 then dxDrawRectangle(screenX - 115, screenYStart + 70, 110, 12.5, tocolor(0, 0, 0, 230)) dxDrawRectangle(screenX - 115, screenYStart + 83, 110, 12.5, tocolor(0, 0, 0, 230)) end end -- CLOCK function getDayName( day )
  15. Eshtiz

    Problemo - HUD

    Nop, no errors at all EDIT: Trying to set it as the default weapon box / icons, that's all, but doesn't show after reconnecting or logging in. I have to restart the resource to make "new-ly" logged in players see it. NOTE: If I stop the hud-system resource, the weapon box doesn't show, even after it being stopped!
×
×
  • Create New...