Jump to content

Jacob Lenn

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by Jacob Lenn

  1. Man looking at code from file dat u gave us, there is much more columns than 1.
  2. If script doesn't create tables you have to create them by yourself. You must look what tables with what columns you must create.
  3. You created base with name "arena" i guess and put this into this connecting lane isntead of "base_name". I think it isnt good idea to use MySQL when u r amateur.
  4. Man! You must change it to ur base's name.
  5. Look where do you have it. It's below this: ----------------------------- --Playerstuff---------------- --------Login-Register-------
  6. dbQuery(handler, "CRATE TABLE IF NOT EXISTS name(column1 INT, column2 VARCHAR(255))")
  7. dbHandler = dbConnect("mysql","dbname=ni157812_1_db;host=localhost","mta","mta") Here put ur base info. dbHandler = dbConnect("mysql","dbname=base_name;host=localhost", "root", "")
  8. show me this file xnotify\server\core.lua
  9. function SpawnPlayer(thePlayer,skin,skin2,skin3,r,g,b) local n = math.random(1,3) if n == 1 then spawnPlayer ( thePlayer, -1494,921,8, 90.0, skin ) elseif n == 2 then spawnPlayer ( thePlayer, 2005,1545,14, 90.0, skin3 ) elseif n == 3 then spawnPlayer ( thePlayer, 1178,-1325,15, 90.0, skin2 ) end end
  10. Turn on controlpanel and turn on MySQL and Apahce. After go to http://localhost/phpmyadmin , create base and after conenct to the base in this mysql file in your script using this: host: localhost base: base_name user: root pass: Default user in MySQL is root without pass.
  11. Get some MySQL base or if you are using localhost just download xampp and create one.
  12. Do you have MySQL base? Becouse i think this script is using MySQL.
  13. Jacob Lenn

    Question

    Or just do sth lile dat: 0.37x, 0.4y (37%x, 40%y). Your gui on other screens looking same like in urs.
  14. There is another, easier way to do this. Just use this https://wiki.multitheftauto.com/wiki/CreateRadarArea
  15. What about missiontimer? Start timer, when player leaves save into account data time or into sql player's serial. https://wiki.multitheftauto.com/wiki/Re ... ssiontimer
  16. local cars = { {"Name", 1000}, {--again name, --again price } } for k,v in ipairs(cars) do local row = guiAddRow(shopgrid) guiGridListSetItemText(shopgrid, row, carcolumn, v[1], false, false) guiGridListSetItemText(shopgrid, row, carprice, v[2].."$", false, false) end I think sth like dat, but i can be wrong.
  17. 1st thing, when you are triggering you must write as 1st argument player which you triggering to. For example: function nitroon(player) triggerClientEvent(player, "NitrON", getRootElement()) end bindKey("mouse1","down",nitroon) bindKey("lctrl", "down", nitroon) bindKey("rctrl", "down", nitroon) 2nd thing is your bindKey. When you are using bindKey on serverside your 1st argument must be player. bindKey ( player thePlayer, string key, string keyState, function handlerFunction, [ var arguments, ... ] )
  18. I think you didn't understand Solidsnake. He meant that commands don't include parameters. It means that command is only 1st word that you are writing on chatbox.
  19. U must create row first and after set row's names. You can create them by using loop guiGridListAddRow
  20. I think you can do this by craeting local and adding to it +1 per voting, sth like dat: local n = 0 function test () n = n +1 if n == 3 then --sth end end And reseting local by starting the map. n = 0
  21. Try to debug script, i mean check if u get rank: addEventHandler("onPlayerWasted",root, function ( ) outputChatBox(exports["race"]:getPlayerRank( source )) for _,v in ipairs ( Ranks ) do if ( exports["race"]:getPlayerRank( source ) == v[1] ) then givePlayerMoney ( source,v[2] ) end end end ) After pasting this code into your script check what is showing on chat after wasted.
  22. Isn't better to insert some values in MySQL base? And forum script will automtically get this values.
  23. You must use MySQL to do this. Also you have to know structure of vBulletin's base. Create command first and after insert into bulletin's base some values with mysql_query or dbQuery.
×
×
  • Create New...