Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

Everything posted by drk

  1. The table is for dff and txd files, not for id's.
  2. drk

    sreen_money

    Please respect others or you could be banned ...
  3. Ideas from Claudio but it's good mapped...
  4. Provavelmente, é seu PC, não? Ou sua configuração que está muito alta, basicamente é seu PC.
  5. drk

    Help!

    LOL! Start learning: https://wiki.multitheftauto.com/ http://lua-users.org/wiki/TutorialDirectory
  6. drk

    Login GUI

    You get any error?
  7. drk

    Parse help.

    You want to add all the files of the folder by ? You can't. You have to put
  8. Yeah, because in event onPlayerLogin 2 argument is account ( element ) ( userdata ). So you need get name account from account ( element ) ( userdata ). addEventHandler( 'onPlayerLogin',root, function( _,account ) -- account variable is ( element ) ( userdata ). outputChatBox( 'Account Name is '..getAccountName( account ) ) -- getAccountName function return string with account name. end ) Example No need to explain but thanks too
  9. I created a function to generate a code, then return the result but it don't return nothing, I get "..code.." instead of result. And now I get error on account argument ( a userdata value ) code: function generateCode() local number1 = math.random(20,40) local number2 = math.random(100,900) local number3 = math.random(100,900) local result = number1.."."..number2.."."..number3 return result end addEventHandler('onPlayerLogin',root, function(_,account) local select = executeSQLQuery("SELECT * FROM Phone WHERE player='"..account.."'") if not select or #select == 0 then local code = generateCode() executeSQLQuery("INSERT INTO Phone VALUES ( '"..account.."','"..code.."' )") local select2 = executeSQLQuery("SELECT number FROM Phone WHERE player='"..account.."'") outputChatBox('#ABCDEF* #ffffffYour phone number is: '..select2[1]['number'],source,255,255,255,true) else local select3 = executeSQLQuery("SELECT number FROM Phone WHERE player='"..account.."'") outputChatBox('#ABCDEF* #ffffffYour phone number is: '..select3[1]['number'],source,255,255,255,true) end end )
  10. drk

    limit

    guiEditSetMaxLength(string editVar, number limit)
  11. drk

    limit

    What? What you mean by "put more than 1500 in it" What is 1500?!
  12. I know, but by default, if begginers don't know how to change, absolute positions will be defaulted.
  13. No, but can use GUIEditor, GUIEditor use absolute position by default, no?
  14. drk

    War Panel

    Better: http://www.lua-users.org/wiki/TutorialDirectory
  15. Absolute GUI elements are NOT always correct on all resolutions while relative ones are. I know. But what you said isn't about what I said... I said "Same thing..." about "I recommend relative for begginers and absolute for advanceds".
  16. I recommend using relative for beginners and absolute for advanced scripters. Same thing...
  17. Why you only think in you? Others may not know how to do.
  18. I don't know I never used mapInfo arguments ...
  19. To make a gui element working in the same place in the screen but working for all resolutions only use: (posX/resolutionWidth)*xguiGetScreenSizeVariable, (posY/resolutionHeight)*yguiGetScreenSizeVariable, (width/resolutionWidth)*xguiGetScreenSizeVariable, (height/resolutionHeight)*yguiGetScreenSizeVariable
  20. Oh, ok. If you need other map info only see registry.db map registry. See the columns, time, name, playedCount and all you can use ( mapInfo.name, mapInfo.time, mapinfo.playerCount ).
×
×
  • Create New...