Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Anderl

    Point System

    Do you expect us to make it for you? You got to make it by yourself, we'll just give tips and help fixing errors. Use these functions: addScoreboardColumn --this is an exported function from 'dxscoreboard'/'scoreboard', you got to use "call" function or "exports" table to call it setElementData getElementData And these events: onPlayerWasted onPlayerLogin onPlayerJoin
  2. I recommend you learning some basics of English, Google Translate just doesn't do it well. removeWorldModel - Is it hard to click on the wiki page and read?
  3. I did upload the script, and I have ready for give and have the password. http://www.mediafire.com/?46repau82517cff And where is the board for put this post/topic? That still doesn't prove that you'll give the person the password. I guess this topic should be in "Other > General" because this section is about Lua scripting, not really about selling resources.
  4. Wrong section and... How can we be sure that after we donate you, you will give the script? You can just get the money and not give the script anymore.
  5. I think you didn't get me; I asked you to show me the whole code as server-side ( how it was before you created the topic ).
  6. Show the whole code ( server-side, where you call the functions, etc ).
  7. I asked you that ( for server-side code ), you didn't answer me...
  8. Client-side code is not needed, you can do everything on server-side. And as Solidsnake14 said, MySQL functions are server-side only.
  9. Well , i told him to outputDebugString to not show the massage at the chatbox and annoy him , it's same as deleting it. Not really. Let's stop this discussion now.
  10. http://lua-users.org/wiki/FormattingNumbers function format(n) local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right end Example: format( getPlayerMoney( player ) ) P.S. This function is not mine.
  11. Who are you thanking? Me or ahmadqtr?
  12. Well ain't that obvious that it still won't find servers? Of course I would've told if it would've worked alrdy. It's not. People forget to say if it's already working/some don't even test the game and already post here.
  13. He just need to delete debug messages, they aren't needed.
  14. OH MY GOD IM TOO LATE TOO WELL, I DONT CARE LETS SPAM
  15. ^ makes me sad and angry.
  16. There's nothing to open nor edit. Everything must be made from scratch.
  17. You might want to tell us if things are fixed.
  18. You basically want us to do the whole thing for you. No, we're not going to do it for you. Learn and make the gamemode, then you come and ask for help to fix errors. I can give some tips, anyway: 1. You can use XML to save spawns for each team, or if it's just one simple spawn for each team you can do it in the script, without need of XML. 2. Well, you can save positions of all zones in some file and then randomly choose one when needed. 3. For team things, you can use MTA built-in functions ( getTeamName, getPlayerTeam ). Score & capture should be scripted by you. 4. You can't load Cleo mods on MTA. Learn Lua and script them by yourself.
  19. local theTeam = "The team name"; for i,v in ipairs( getElementsByType( 'player' ) ) do if ( ( getTeamName( getPlayerTeam( v ) ) == theTeam ) and ( v == localPlayer ) ) then --draw map name end end
  20. It's not a mistake, it's a debug message. And no, I don't. I'm not some kind of magic that guesses things without the code.
  21. http://www.lua.org/pil/28.1.html Elements are userdata. That message is a debug message that the developer added to check what was going wrong, probably. You can try to find it and delete it, it's useless.
  22. This means some function is calling itself much times, causing a stack overflow ( stack is the part of the memory that is allocated ) - You can see here what it is: http://en.wikipedia.org/wiki/Stack_overflow You might be able to check what is wrong on your code with what I said. I can't check it now, sorry.
  23. Anderl

    plzhelp

    Dude, learn LEARN LEARN LEARN THE FUCKING DAMN LANGUAGE. I'm requesting this topic to be locked as this is just more one topic of the 10-year-old guy asking for scripts.
×
×
  • Create New...