Jump to content

Alpha

Members
  • Posts

    244
  • Joined

  • Last visited

Everything posted by Alpha

  1. You shouldn't use XML at all, it's memory consuming, and it's not practical. You should only use it for configurations, like making an XML file with upgrades Id and name. Something static that won't be changed during the run of the resource, will only be loaded and obtained data from it. I recommend SQLite, it's not as fast as MySQL, but you won't have to setup a database or anything. MTA has new db* functions that works with SQLite, and MySQL. dbConnect dbQuery dbExec dbPoll dbFree
  2. Alpha

    guiSetInputEnabled

    When I told you to use that function, I meant you should check the wiki first. Check it because you're having wrong arguments in it.
  3. Alpha

    guiSetInputEnabled

    Just use: guiSetInputMode
  4. local x = 1 end --this is the end of the variable local x = 2 -- so from now the x is 2? end to end a variable is wrong. the keyword end is used to end blocks like Loops, Functions, If etc..
  5. This should be in the Scripting section, since it's the most used section by beginners. This might be missed.
  6. Before heading to the wiki, I suggest looking at lua tutorials. Here: viewtopic.php?f=148&t=40809
  7. Your script is server side, onClientResourceStart is a client side event. Server side: addEventHandler ( "onResourceStart", resourceRoot, function () for index, player in pairs(getElementsByType("player")) do while true do local randomTarget = getRandomPlayer ( ) if randomTarget ~= player then outputChatBox ("Your target is: " ..getPlayerName ( randomTarget ), player ) break end end end end )
  8. Alpha

    VB, C++ and VC++

    Thank you, I will just go with C++. I have no programming experience what so ever, just Lua lol.
  9. Alpha

    VB, C++ and VC++

    I throw VB out of the equation, some people told me to learn C#. Some people say that C++ is old. I can't find a good teaching source for C++. If any one knows any, please help me.
  10. Alpha

    VB, C++ and VC++

    I'm starting to learn a programming language, and I'm puzzled between VB, C++ and VC++. I know Visual C++ isn't a language, it's an extension for C++ and a compiler. I seriously need an opinion, a wise one. If you don't know what you're talking about, don't post. Thanks.
  11. Take it easy, everyone started like that.
  12. screenX, screenY isn't defined, beginners wouldn't know what is it.
  13. Alpha

    [Help]....

    Check the latest posts.
  14. Alpha

    [REL] DxWorld

    Great idea, keep up.
  15. dbConnect dbQuery dbPoll dbFree dbExec
  16. Alpha

    Metal fans

    Next time, be more specific.
  17. Alpha

    Metal fans

    What the heck are you talking about?
  18. My bad, I thought you wanted a headshot resource. I don't think there is any working resources for peds. You can search in the community. https://community.multitheftauto.com/
  19. Look at the last post's date, Jan 3. You just bumped an old topic.
  20. https://community.multitheftauto.com/index.php?p= ... ails&id=14 You can search for any resource there.
  21. Alpha

    Help

    Stanley, that doesn't make any difference. Al3grab, yeah better, but might not be what he wanted.
  22. Alpha

    Help

    wantedJanela = guiCreateWindow(76,58,171,21,"",false) editWanted = guiCreateEdit(76,58,171,21,"",false,wantedJanela) guiSetVisible ( wantedJanela, false) function Visible () guiSetVisible ( wantedJanela, true ) showCursor(true) end addCommandHandler ( "wantedstats", Visible )
  23. The second argument of setTimer which is the timeInterval must be 50 or higher.
×
×
  • Create New...