xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
The lines 36 - 82.
-
use: http://gtamap.delux-host.com/converter/
-
Where it says "dxDrawText" or "dxDrawRectangle"?
-
This script makes not scenes at all.
-
You cannot get an account from the serial. account getAccount ( string username, [ string password ] )
-
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.
-
shit i hate client sides That isn't the whole script. I don't want people taking it.
-
I think it so difficult for him @ Lucario, it would make it much easier. (As long as you know how to use tables...)
-
I also recommond NP++. Download: http://download.tuxfamily.org/notepadpl ... taller.exe
-
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.
-
Not sure, but you can try this: addEventHandler ( "onPlayerJoin", root, -- It binds when you connect. function () bindKey ( source, "H","down",supportCommand ) end )
-
It would be nice, just to see what you are capable of making.
-
--element dbConnect ( string databaseType, string host [, string username = "", string password = "", string options = "" ] ) connection = dbConnect ( "MySQL", "127.0.0.1", "xXMADEXx", "database" )
-
Its very simple..... Here is an example: addEventHandler ( "onResourceStart", root, function () exports["slothbot"]:spawnBot ( 0, 0, 0, 90, math.random ( 1, 100 ) ) end )
-
"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
-
There are many ways to do this...
-
I think you'll still have to pay for someone to make it. I would just use 50p's spawn panel.
-
wow how did i miss that? Code is working now Thank you.
-
Error: attempted to index field '?' (a nil value)
-
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 )
-
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.
-
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 )
