Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. The lines 36 - 82.
  2. xXMADEXx

    Custom map

    use: http://gtamap.delux-host.com/converter/
  3. Where it says "dxDrawText" or "dxDrawRectangle"?
  4. This script makes not scenes at all.
  5. xXMADEXx

    String

    You cannot get an account from the serial. account getAccount ( string username, [ string password ] )
  6. For the most part, scripters don't accept non-paying jobs... unless they're pretty new to scripting. And, you didn't really give very much info about your server.
  7. shit i hate client sides That isn't the whole script. I don't want people taking it.
  8. I think it so difficult for him @ Lucario, it would make it much easier. (As long as you know how to use tables...)
  9. xXMADEXx

    doubt

    I also recommond NP++. Download: http://download.tuxfamily.org/notepadpl ... taller.exe
  10. Hello everyone. I have no idea, why my script isn't working... All the errors will work fine (such as no username/password entered, etc...), but for some reason, the "triggerServerEvent" isn't working. Here it is: Client: function onPlayerSubmitRegister ( ) --if ( source == rButton["register"] ) then local username = guiGetText ( rEdit["username"] ) local password = guiGetText ( rEdit["password"] ) if ( isAllRegFieldsValid ( ) == true ) then if password == guiGetText(rEdit["cPassword"]) then if #password > 3 and #username > 3 then local email = guiGetText ( rEdit["email"] ) if ( string.find ( email, "@" ) ) then triggerServerEvent("onPlayerAttemptRegister",source,username,password) else exports["SRNCore"]:sendClientError(1,"Your email is invalid.") end else exports["SRNCore"]:sendClientError(1,"Your password and username need to be at least 4\ncharacters long.") end else exports["SRNCore"]:sendClientError(1,"Your passwords don't match.") end else exports["SRNCore"]:sendClientError ( 1, "You need to enter all the fields." ) end --end end -- "onClientGUIClick" is defined somewhere else. Server: function onPlayerAttemptRegister ( user, pass ) if ( user ) and ( pass ) then local nAccount = addAccount ( user, pass ) if ( nAccount ) then local nAccount = getAccount ( user ) logIn ( source, nAccount, pass ) exports["SRNCore"]:sendClientError ( 0, "Thank you for registering on the server!" ) triggerClientEvent ( source, "onPlayerCloseLoginScreens", source ) else exports["SRNCore"]:sendClientError ( 1, "Account: "..user.." already exists on this server.") end else exports["SRNCore"]:sendClientError ( 1, "You need to enter a passsword and a username." ) end end addEvent ( "onPlayerAttemptRegister", true ) addEventHandler ( "onPlayerAttemptRegister", root, onPlayerAttemptRegister ) Note: Nothing in the server file will even trigger.
  11. Not sure, but you can try this: addEventHandler ( "onPlayerJoin", root, -- It binds when you connect. function () bindKey ( source, "H","down",supportCommand ) end )
  12. ^^
  13. It would be nice, just to see what you are capable of making.
  14. --element dbConnect ( string databaseType, string host [, string username = "", string password = "", string options = "" ] ) connection = dbConnect ( "MySQL", "127.0.0.1", "xXMADEXx", "database" )
  15. Its very simple..... Here is an example: addEventHandler ( "onResourceStart", root, function () exports["slothbot"]:spawnBot ( 0, 0, 0, 90, math.random ( 1, 100 ) ) end )
  16. what?
  17. "mysql_escape_string" is not a valid function. You have to have the 32 bit MySQL module for MTA. https://wiki.multitheftauto.com/wiki/Mo ... on_aliases
  18. There are many ways to do this...
  19. I think you'll still have to pay for someone to make it. I would just use 50p's spawn panel.
  20. wow how did i miss that? Code is working now Thank you.
  21. Error: attempted to index field '?' (a nil value)
  22. Still is returning nil... Here is the code: -- Get accounts password -- function getAccountPassword ( player, command, account ) if ( account ) and ( type ( account ) == "string" ) then if ( doesAccountExist ( account ) == true ) then local new = dbQuery ( dbc, "SELECT * FROM Accounts WHERE name=?", accnt ) local result = dbPoll ( new, - 1 ) -- Not to sure what to do... -- local password = result[1] outputChatBox ( tostring ( password ) ) end end end addCommandHandler ( "ga", getAccountPassword )
  23. I tried that, but now its saying "unknown index," so i made this code: -- Get accounts password -- function getAccountPassword ( player, command, account ) if ( account ) and ( type ( account ) == "string" ) then if ( doesAccountExist ( account ) == true ) then local new = dbQuery ( dbc, "SELECT * FROM Accounts WHERE name=?", accnt ) local result,n_rows = dbPoll ( new, - 1 ) -- Not to sure what to do... -- local password = result[2] outputChatBox ( tostring ( password ) ) end end end addCommandHandler ( "ga", getAccountPassword ) and its returning nil.
  24. Hi guys, im trying to get the "password" column, where the player's account is. Here is what i got, but i got stuck. function getAccountPassword ( player, command, account ) if ( account ) and ( type ( account ) == "string" ) then if ( doesAccountExist ( account ) == true ) then local new = dbQuery ( dbc, "SELECT * FROM Accounts WHERE name=?", accnt ) local result,n_rows = dbPoll ( new, - 1 ) -- Not to sure what to do... -- outputChatBox ( tostring ( n_rows ) ) end end end addCommandHandler ( "ga", getAccountPassword )
  25. xXMADEXx

    Turfs

    All you have to do is search MTA community, there are many of them.
×
×
  • Create New...