Jump to content

Hero192

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by Hero192

  1. Hey, I don't know how to loop this kind of tables for example: local ranks = { ["Fireman"] = { {"level1", 1}, {"Level2", 2}, {"Level3", 3}, {"Level4", 4}, } }
  2. I mean Non English chat, a chanel for chatting only for the same countries. For example UK only the players who are from UK can use UK chat. USA, only USA players who can use USA's chat. It can be done with a key from the keyboard, like if you pressed on the key number "1" you'll talk on the chat chanel. If you know, just tell me the way and tips to follow to make it. And thanks.
  3. Hey guys, how can I do a non english system? which tips I have to follow.. Thanks for who gonna helps me
  4. Can you give me the link that could appears dirrectly at the payments? and is this hosting related to MTA? thanks in advance
  5. Hey community, Can anyone suggest in below a good experienced host? which they have a VPS server plus a good service?
  6. Thanks for the informations both of you, But i am still confiused, can you tell me which ways I have to follow to make custom account system?
  7. As you see from the topic Title, why other servers making up a custom account system what it's for?
  8. Hello how to make the setCameraMatrix moving .. from a point to another point
  9. Hey dear scripters, I wanted to SELECT 2 Tables from the database and those two tables contains with an account name, I want to be able to loop from those two tables in same time. I tried that, function isAccount (acc) if (acc) then local query = dbQuery(connection, "SELECT * FROM vehicles, weapons WHERE vehicles.account='"..tostring(acc).."' AND weapons.account'"..acc.."'LIMIT 1") local result = dbPoll(query,-1) if (type(result) == "table" and #result == 0) or not result then return false else return result[1] end end end --(It's not a full code just showing how I looped the data) ---When I try to loop the data it return false, local result = isAccount(getAccountName(getPlayerAccount(source))) giveWeapon(source, result.slotID0, result.ammoID0) Can any one give me a hand please?
  10. Hello guys, I have a question about why scripters loop the dpPoll result? and is this correct? result.value or result["value"]
  11. Thanks for your efforts to write down all that to let me understand, btw I got it thanks alot I apreciate that !
  12. Hey guys, I am kinda confiused between the difference of and and not For example: --Is this correct? When I have to use or and when I have to use and function () if source or isElement(source) then --code end end
  13. I mean is rootElement / resourceRoot needed? if so in which case I have to use it ?
  14. Hello dear MTA Scripters, Today I want to ask about trigger function, I want to know in which case I have to set root and source/player to sourceElement arguments Like , triggerClientEvent (getRootElement(), "eventName", getRootElement()) and in which case I have to use source or player triggerClientEvent (source, "eventName" source ) and does that refer the same as triggerServerEvent ? triggerServerEvent("eventName", getRootElement() ) I really need to understand that properly.. Thanks in advance.
  15. Hey Dear MTA scripters, I am trying to make an Account Recover system for the player that who forgot / lost their account password. How can I send a message to player's Email ?
  16. No, I am just searching for a event when a player spawn a new vehicle ? is there's any event
  17. Does this event still exist? onPlayerSpawnVehicle
  18. I have a question, what's the difference if the server is running on GNU/Linux and with Windows
  19. Can I just know what I have missed on ?
  20. Here's the last action: and I don't know how to deal with it dbConnect failed; Can't connect to local MySQL server through socket "(111)
  21. Hello, I have a problem I'm trying to start a server, The server will require MySQL and my host is on GNU/Linux. I start scripting with using dbFunction to open the connection to the database but it return with an error I don't know what I had done wrong. Here's the code in below local mysql = {"localhost", "database2A", "root", "root", 3306} local host, database, user, pass, port = unpack(mysql) local connection = dbConnect( "mysql", "host=" .. host .. ";port=" .. port .. ";dbname=" .. database, user, pass, "share=1", "autoreconnect=1" ) if connection then outputDebugString("MySQL Database has been connected succesfully.") else outputDebugString("MySQL Database return false.") end dbExec (connection, "CREATE TABLE IF NOT EXISTS account (User TEXT") WARNING:Line 10: Bad argument @ 'dbExec' [Expected db-connection at argument 1, got boolean] also the table won't be created, please help me Thanks in advance
  22. the grid works fine, the problem is I want do like admin panel of Lil Today, if you see the button "Freeze" if you frozen someone the button text change to freeze if the player selected is unfrozen and show unfreeze if the player who's selected is frozen.
×
×
  • Create New...