Jump to content

Drakath

Members
  • Posts

    768
  • Joined

  • Last visited

Everything posted by Drakath

  1. Drakath

    Hosting

    I think my current choice is better. Anyway, would this host run a server with 200 players and no lags if the server wouldn't have any serverside pedestrians and would be bugless?
  2. Drakath

    Hosting

    Does anyone know a good and cheap hosting? The best one I found yet is this: Price: 15.65 USD per month. RAM: 4096 MB Disc space: 40 GB Transfer: Unlimited. Permeability: 120 Mbps CPU: 7 GHz from Intel i7 OS: Linux Would this host run a server with 200 players and no lags if the server wouldn't have any serverside pedestrians and would be bugless?
  3. Yeah, I decided to ditch this idea.
  4. I don't want to use any rendering events, but I didn't understand what 3B00DG4MER was trying to say. What do you mean by: " remove Comments from Client"?
  5. Drakath

    Ban reason

    My suggestion is to always show the ban reason, not only the first time when you get banned. I think that would be easy to make and could come with MTA 1.4
  6. I have read in Wiki that arrow markers are not animated by default. So my question is if there is some function to make it animated or do I have to use onClientRender stuff?
  7. Thank you very much. It worked
  8. local weaponID = getWeaponIDFromName(weapon) for i=1,46 do local a = Cart.weapons[i] if a == weaponID then table.remove(Cart.weapons, a) --How do I remove weaponID value from the table? This didn't work. end end
  9. One last thing. I need to make an ability to remove a weapon from the cart. How can I remove a value from table if I know the weapon id and amount of bullets?
  10. Alright, I did some fixing of your code and I can finally retrieve the ids, but now I also need the amount of bullets. I tried this: Cart.weapons[w_count] = weaponID and bulletsAmount This: Cart.weapons[w_count] = weaponID, bulletsAmount This: Cart.weapons[w_count] = (weaponID, bulletsAmount) But none worked. I think you understood what I want. weaponID and bulletsAmount only outputted bullets.
  11. 79: attempt to index local 'v' (a number value) 78: for _,v in pairs (Cart.weapons) do 79: local value1 = v[1]
  12. Because a player can buy a lot of weapons. So It would insert a lot of values. I need the script to handle that. And this: local Cart = { weapons = {22 }, prices = { } } --would just replace everything with weapon id 22.
  13. My table isn't local weapons = { { 1, 2}, {6666, 21312}, {1231, 423542}, } It is like this: local Cart = { weapons = { }, prices = { } } local weaponID = getWeaponIDFromName(weapon) table.insert(Cart.weapons, weaponID) --When table is empty this happen table.insert ( Cart.weapons, { Cart.weapons, weaponID } ) --When table is not empty this happen
  14. attempt to index local 'v' (a number value)
  15. I want to insert more values. The table already has a value and I want to insert another value. I called table.insert again but outputChatBox(unpack(Cart.weapons)) only outputs one value. How can I retrieve all values from that table?
  16. That's not really what I wanted. Lets say the table already has weapon id: 22 in it. I want to add another ID: 30 to it. How do I do that?
  17. I need the script to store some weapons into a table and then give those weapons to a player and remove them from the table. It is easy to store one weapon into a table but how can I store multiple weapons? This is the part of my script: local weaponID = getWeaponIDFromName(weapon) table.insert(Cart.weapons, weaponID) elseif tonumber(Cart.weapons) then --This means that if something is already stored in the table. table.insert(Cart.weapons, Cart.weapons and weaponID) However it doesn't work. "Cart.weapons and weaponID" does not work. If there isn't any way to make it work, I also have a grid list with those weapons but how can I import them to table?
  18. 'onClientDoubleClick' is for buttons only. Use 'onClientGUIDoubleClick' instead.
  19. function greetingEvent () triggerClientEvent ( "onGreeting", getRootElement(), "Hello World!" ) end addEventHandler("onResourceStart", root, greetingEvent) function greetingHandler ( message ) outputChatBox ( "The server says: " .. message ) end addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler ) Why doesn't it work with event handler 'onResourceStart"?
  20. Drakath

    Moving database

    I have exported it as SQL in cp1252 encoding. But the size is now 568 MB instead of 277 MB. Is this normal? Also is there any browser to open SQL databses so I can edit it?
  21. Drakath

    Stat ids

    Alright, thanks.
  22. Drakath

    Stat ids

    Are you sure? Tec-9 and Uzi are two different weapons... @AbaZaSiRiN00 don't spam the topic if you have nothing to say.
×
×
  • Create New...