Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. So, your trying to create a Handler for all Vehicles that are Infernus?
  2. Jaysds1

    Mysql

    ya, Create a Database then add the tables. EDIT: Sorry about that scanner.
  3. Jaysds1

    Mysql

    He's trying to instal xampp but other stuff are using the ports and block the software. ok, When your finish installing the software, go to http://localhost/xampp then go to phpMyAdmin and what ever you need to do on your server like accounts, add a table. In the script you should have mysql_connect("localhost", "EDIT IN Xampp", "EDIT IN Xampp", "THE DATABASE YOU MADE") EDIT: A database is inside phpMyAdmin
  4. Jaysds1

    Mysql

    Nice, I never knew, ok continue the installation process on the other page/forum Cannonball.
  5. Jaysds1

    Gui.lua

    UCK... Sorry, just use your old script
  6. Jaysds1

    Gui.lua

    try this: --------------------------------- -- Code generated by DKR QT to Lua 0.1.7 -- -- Source: gui2.ui -- -- Date: 01/08/2011 - 08:20:50 -- ------------------------------------- function build_TabWidget(parent) local gui = {} local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 800, 615 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "TabWidget", false) guiWindowSetSizable(gui["_root"], false) return gui, windowWidth, windowHeight local gui = {} gui._placeHolders = {} gui["label"] = guiCreateLabel(372, 50, 61, 41, "Rules", false, parent) guiSetFont(gui["label"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") gui._placeHolders["textBrowser"] = {left = 12, top = 110, width = 781, height = 411, gui["_root"] = parent} gui["pushButton"] = guiCreateButton(262, 550, 91, 41, "Accept", false, parent) if on_pushButton_clicked then addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false) end gui["pushButton_2"] = guiCreateButton(422, 550, 91, 41, "Decline", false, parent) if on_pushButton_2_clicked then addEventHandler("onClientGUIClick", gui["pushButton_2"], on_pushButton_2_clicked, false) end gui["checkBox"] = guiCreateCheckBox(12, 530, 361, 21, "I accept the Rules and Conditions and i will be play fair !", false, false, parent) guiSetFont(gui["checkBox"], "default-bold-small") gui["label_2"] = guiCreateLabel(22, 190, 101, 31, "*DONT HACK!", false, parent) guiSetFont(gui["label_2"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") gui["label_3"] = guiCreateLabel(22, 220, 101, 31, "*DONT ABUSE!", false, parent) guiSetFont(gui["label_3"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_3"], "left", false) guiLabelSetVerticalAlign(gui["label_3"], "center") gui["label_4"] = guiCreateLabel(22, 250, 161, 31, "*DONT FLOOD THE CHAT!", false, parent) guiSetFont(gui["label_4"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_4"], "left", false) guiLabelSetVerticalAlign(gui["label_4"], "center") gui["label_5"] = guiCreateLabel(22, 280, 101, 31, "*DONT BOTHER!", false, parent) guiSetFont(gui["label_5"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_5"], "left", false) guiLabelSetVerticalAlign(gui["label_5"], "center") gui["label_6"] = guiCreateLabel(22, 310, 211, 31, "*DONT USE MODIFIED HANDLING!", false, parent) guiSetFont(gui["label_6"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_6"], "left", false) guiLabelSetVerticalAlign(gui["label_6"], "center") gui["label_7"] = guiCreateLabel(22, 350, 171, 21, "*DONT USE VISUAL MODS!", false, parent) guiSetFont(gui["label_7"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_7"], "left", false) guiLabelSetVerticalAlign(gui["label_7"], "center") gui._placeHolders["line"] = {left = 12, top = 359, width = 781, height = 91, parent = parent} gui["label_8"] = guiCreateLabel(32, 420, 101, 31, "Have Fun !", false, parent) guiSetFont(gui["label_8"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_8"], "left", false) guiLabelSetVerticalAlign(gui["label_8"], "center") gui["label_9"] = guiCreateLabel(282, 480, 751, 61, "Every rule break will result ban or permaban .", false, parent) guiSetFont(gui["label_9"], "default-small") guiLabelSetHorizontalAlign(gui["label_9"], "left", false) guiLabelSetVerticalAlign(gui["label_9"], "center") return gui end function on_pushButton_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_2_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function build_tab(parent) local gui = {} gui._placeHolders = {} gui["label_10"] = guiCreateLabel(12, 60, 121, 51, "Admins", false, parent) guiSetFont(gui["label_10"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_10"], "left", false) guiLabelSetVerticalAlign(gui["label_10"], "center") return gui end -- End of DKR QT to Lua code --
  7. Jaysds1

    Mysql

    Did you found your solution in the url i sent you?
  8. Jaysds1

    Mysql

    ok, I went back on the site and searched for any other downloads for vista and this is what i found: and here's the link for Vista problems, it might have the solution: http://www.apachefriends.org/en/faq-xampp-windows.html#vista
  9. Jaysds1

    Gui.lua

    try this: -- Code generated by DKR QT to Lua 0.1.7 -- -- Source: gui2.ui -- -- Date: 31/07/2011 - 07:51:20 -- ------------------------------------- local gui = {} gui._placeHolders = {} addEventHandler("onClientResourceStart",resourceRoot, function() local screenWidth, screenHeight = guiGetScreenSize() local windowWidth, windowHeight = 800, 615 local left = screenWidth/2 - windowWidth/2 local top = screenHeight/2 - windowHeight/2 gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "TabWidget", false) guiWindowSetSizable(gui["_root"], false) gui["label"] = guiCreateLabel(372, 50, 61, 41, "Rules", false, gui["_root"]) guiSetFont(gui["label"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label"], "left", false) guiLabelSetVerticalAlign(gui["label"], "center") gui._placeHolders["textBrowser"] = {left = 12, top = 110, width = 781, height = 411, gui["_root"] = gui["_root"]} gui["pushButton"] = guiCreateButton(262, 550, 91, 41, "Accept", false, gui["_root"]) if on_pushButton_clicked then addEventHandler("onClientGUIClick", gui["pushButton"], on_pushButton_clicked, false) end gui["pushButton_2"] = guiCreateButton(422, 550, 91, 41, "Decline", false, gui["_root"]) if on_pushButton_2_clicked then addEventHandler("onClientGUIClick", gui["pushButton_2"], on_pushButton_2_clicked, false) end gui["checkBox"] = guiCreateCheckBox(12, 530, 361, 21, "I accept the Rules and Conditions and i will be play fair !", false, false, gui["_root"]) guiSetFont(gui["checkBox"], "default-bold-small") gui["label_2"] = guiCreateLabel(22, 190, 101, 31, "*DONT HACK!", false, gui["_root"]) guiSetFont(gui["label_2"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_2"], "left", false) guiLabelSetVerticalAlign(gui["label_2"], "center") gui["label_3"] = guiCreateLabel(22, 220, 101, 31, "*DONT ABUSE!", false, gui["_root"]) guiSetFont(gui["label_3"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_3"], "left", false) guiLabelSetVerticalAlign(gui["label_3"], "center") gui["label_4"] = guiCreateLabel(22, 250, 161, 31, "*DONT FLOOD THE CHAT!", false, gui["_root"]) guiSetFont(gui["label_4"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_4"], "left", false) guiLabelSetVerticalAlign(gui["label_4"], "center") gui["label_5"] = guiCreateLabel(22, 280, 101, 31, "*DONT BOTHER!", false, gui["_root"]) guiSetFont(gui["label_5"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_5"], "left", false) guiLabelSetVerticalAlign(gui["label_5"], "center") gui["label_6"] = guiCreateLabel(22, 310, 211, 31, "*DONT USE MODIFIED HANDLING!", false, gui["_root"]) guiSetFont(gui["label_6"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_6"], "left", false) guiLabelSetVerticalAlign(gui["label_6"], "center") gui["label_7"] = guiCreateLabel(22, 350, 171, 21, "*DONT USE VISUAL MODS!", false, gui["_root"]) guiSetFont(gui["label_7"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_7"], "left", false) guiLabelSetVerticalAlign(gui["label_7"], "center") gui._placeHolders["line"] = {left = 12, top = 359, width = 781, height = 91, gui["_root"] = gui["_root"]} gui["label_8"] = guiCreateLabel(32, 420, 101, 31, "Have Fun !", false, gui["_root"]) guiSetFont(gui["label_8"], "default-bold-small") guiLabelSetHorizontalAlign(gui["label_8"], "left", false) guiLabelSetVerticalAlign(gui["label_8"], "center") gui["label_9"] = guiCreateLabel(282, 480, 751, 61, "Every rule break will result ban or permaban .", false, gui["_root"]) guiSetFont(gui["label_9"], "default-small") guiLabelSetHorizontalAlign(gui["label_9"], "left", false) guiLabelSetVerticalAlign(gui["label_9"], "center") end) function on_pushButton_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end function on_pushButton_2_clicked(button, state, absoluteX, absoluteY) if (button ~= "left") or (state ~= "up") then return end --TODO: Implement your button click handler here end and What's the problem with this code?
  10. OK, I stopped, don't bring that up please... I was just new in the forum and i didn't know that our posts is our Experience in the Forum.... So I told everyone I'll stop.
  11. hey hey hey hey, Don't get off topic now... just wait till the guy posts the script, OK.
  12. Sorry, Last night I was tired so, I tried to help him... Anyways... Does it work lukkaz?
  13. Jaysds1

    Screen Size

    I recently changed my screen size in mta and after it restarted, the screen tells me that it's not supported. So I went in to the mta coreconfig.xml (C:\Program Files\MTA San Andreas\MTA\coreconfig.xml) and saw this: <mainconfig> <settings> <nick>Player</nick> <host>127.0.0.1</host> <port>22003</port> <password></password> <qc_host>127.0.0.1</qc_host> <qc_port>22003</qc_port> <qc_password></qc_password> <debugfile></debugfile> <console_pos>0 0</console_pos> <console_size>550 360</console_size> <serverbrowser_size>720 495</serverbrowser_size> <fps_limit>100</fps_limit> <chat_font>2</chat_font> <chat_lines>10</chat_lines> <chat_color>0 0 0 0</chat_color> <chat_input_color>0 0 0 0</chat_input_color> <chat_input_prefix_color>172 213 254 255</chat_input_prefix_color> <chat_input_text_color>172 213 254 255</chat_input_text_color> <chat_scale>1 1</chat_scale> <chat_width>1.500000</chat_width> <chat_css_style_text>0</chat_css_style_text> <chat_css_style_background>0</chat_css_style_background> <chat_line_life>12000</chat_line_life> <chat_line_fade_out>3000</chat_line_fade_out> <chat_use_cegui>0</chat_use_cegui> <text_scale>1.000000</text_scale> <invert_mouse>0</invert_mouse> <fly_with_mouse>0</fly_with_mouse> <steer_with_mouse>0</steer_with_mouse> <classic_controls>0</classic_controls> <mtavolume>1.000000</mtavolume> <async_loading>1</async_loading> <mapalpha>155</mapalpha> <browser_speed>2</browser_speed> <single_download>0</single_download> <code_path>0</code_path> <update_build_type>0</update_build_type> <volumetric_shadows>0</volumetric_shadows> <aspect_ratio>0</aspect_ratio> <display_windowed /> <multimon_fullscreen_minimize /> <screenshot_path>C:\Program Files\MTA San Andreas\screenshots</screenshot_path> <chat_text_color /> <fixup_flags>-cb-ma</fixup_flags> <menu_options>0</menu_options> <community_username /> <community_password /> </settings> <binds> <bind key="num_0" control="fire" /> <bind key="lctrl" control="fire" /> <bind key="mouse1" control="fire" /> <bind key="e" control="next_weapon" /> <bind key="num_enter" control="next_weapon" /> <bind key="mouse_wheel_down" control="next_weapon" /> <bind key="q" control="previous_weapon" /> <bind key="num_dec" control="previous_weapon" /> <bind key="mouse_wheel_up" control="previous_weapon" /> <bind key="arrow_u" control="forwards" /> <bind key="w" control="forwards" /> <bind key="arrow_d" control="backwards" /> <bind key="s" control="backwards" /> <bind key="arrow_l" control="left" /> <bind key="a" control="left" /> <bind key="arrow_r" control="right" /> <bind key="d" control="right" /> <bind key="pgup" control="zoom_in" /> <bind key="x" control="zoom_in" /> <bind key="mouse_wheel_up" control="zoom_in" /> <bind key="pgdn" control="zoom_out" /> <bind key="z" control="zoom_out" /> <bind key="mouse_wheel_down" control="zoom_out" /> <bind key="enter" control="enter_exit" /> <bind key="f" control="enter_exit" /> <bind key="v" control="change_camera" /> <bind key="home" control="change_camera" /> <bind key="lshift" control="jump" /> <bind key="rctrl" control="jump" /> <bind key="space" control="sprint" /> <bind key="num_1" control="look_behind" /> <bind key="mouse3" control="look_behind" /> <bind key="c" control="crouch" /> <bind key="tab" control="action" /> <bind key="lalt" control="walk" /> <bind key="rctrl" control="vehicle_fire" /> <bind key="lalt" control="vehicle_fire" /> <bind key="mouse1" control="vehicle_fire" /> <bind key="lctrl" control="vehicle_secondary_fire" /> <bind key="num_0" control="vehicle_secondary_fire" /> <bind key="a" control="vehicle_left" /> <bind key="arrow_l" control="vehicle_left" /> <bind key="d" control="vehicle_right" /> <bind key="arrow_r" control="vehicle_right" /> <bind key="arrow_u" control="steer_forward" /> <bind key="arrow_d" control="steer_back" /> <bind key="w" control="accelerate" /> <bind key="s" control="brake_reverse" /> <bind key="insert" control="radio_next" /> <bind key="4" control="radio_next" /> <bind key="mouse_wheel_up" control="radio_next" /> <bind key="delete" control="radio_previous" /> <bind key="r" control="radio_previous" /> <bind key="mouse_wheel_down" control="radio_previous" /> <bind key="F5" control="radio_user_track_skip" /> <bind key="capslock" control="horn" /> <bind key="h" control="horn" /> <bind key="2" control="sub_mission" /> <bind key="num_add" control="sub_mission" /> <bind key="space" control="handbrake" /> <bind key="rctrl" control="handbrake" /> <bind key="q" control="vehicle_look_left" /> <bind key="e" control="vehicle_look_right" /> <bind key="mouse3" control="vehicle_look_behind" /> <bind key="mouse2" control="vehicle_mouse_look" /> <bind key="num_4" control="special_control_left" /> <bind key="num_6" control="special_control_right" /> <bind key="num_2" control="special_control_down" /> <bind key="end" control="special_control_down" /> <bind key="num_8" control="special_control_up" /> <bind key="delete" control="special_control_up" /> <bind key="delete" control="aim_weapon" /> <bind key="capslock" control="aim_weapon" /> <bind key="mouse2" control="aim_weapon" /> <bind key="y" control="conversation_yes" /> <bind key="n" control="conversation_no" /> <bind key="g" control="group_control_forwards" /> <bind key="h" control="group_control_back" /> <bind key="g" state="down" command="enter_passenger" arguments="" /> <bind key="F12" state="down" command="screenshot" arguments="" /> <bind key="t" state="down" command="chatbox" arguments="chatboxsay" /> <bind key="y" state="down" command="chatbox" arguments="teamsay 255 0 0" /> <bind key="F11" state="down" command="radar" arguments="-1" /> <bind key="num_add" state="down" command="radar_zoom_in" arguments="" /> <bind key="num_sub" state="down" command="radar_zoom_out" arguments="" /> <bind key="num_8" state="down" command="radar_move_north" arguments="" /> <bind key="num_2" state="down" command="radar_move_south" arguments="" /> <bind key="num_6" state="down" command="radar_move_east" arguments="" /> <bind key="num_4" state="down" command="radar_move_west" arguments="" /> <bind key="num_0" state="down" command="radar_attach" arguments="" /> <bind key="pgup" state="down" command="chatscrollup" arguments="1" /> <bind key="pgup" state="up" command="chatscrollup" arguments="0" /> <bind key="pgdn" state="down" command="chatscrolldown" arguments="-1" /> <bind key="pgdn" state="up" command="chatscrolldown" arguments="0" /> <bind key="pgup" state="down" command="debugscrollup" arguments="1" /> <bind key="pgup" state="up" command="debugscrollup" arguments="0" /> <bind key="pgdn" state="down" command="debugscrolldown" arguments="-1" /> <bind key="pgdn" state="up" command="debugscrolldown" arguments="0" /> </binds> <updater> <var> <version_lastchecktime>1970-01-01 00:00:00</version_lastchecktime> <master_lastchecktime>2011-08-01 14:43:53</master_lastchecktime> <master_highestnotifyrevision></master_highestnotifyrevision> <news_lastchecktime>1970-01-01 00:00:00</news_lastchecktime> <news_lastnewsdate></news_lastnewsdate> <crashdump_historylist /> </var> <mastercache> <master> <revision>2011-26-07</revision> <serverlist> <server>https://updatesa.multitheftauto.com/sa/master/?v=%VERSION%&id=%ID%</server> <server>https://updatesa.multitheftauto.com/sa/master/?v=%VERSION%&id=%ID%</server> <server>http://mta-updatesa.yomg.net/sa/master/?v=%VERSION%&id=%ID%</server> </serverlist> <interval>12h</interval> </master> <version> <serverlist> <server priority="3">https://updatesa.multitheftauto.com/sa/version/?v=%VERSION%&id=%ID%&ty=%TYPE%&da=%DATA%&be=%BETA%&re=%REFER%</server> <server priority="4">https://updatesa.multitheftauto.com/sa/version/?v=%VERSION%&id=%ID%&ty=%TYPE%&da=%DATA%&be=%BETA%&re=%REFER%</server> <server priority="5">http://mta-updatesa.yomg.net/sa/version/?v=%VERSION%&id=%ID%&ty=%TYPE%&da=%DATA%&be=%BETA%&re=%REFER%</server> </serverlist> <interval>12h</interval> </version> <report> <serverlist> <server>https://updatesa.multitheftauto.com/sa/report/?v=%VERSION%&id=%ID%</server> <server>https://updatesa.multitheftauto.com/sa/report/?v=%VERSION%&id=%ID%</server> <server>http://mta-updatesa.yomg.net/sa/report/?v=%VERSION%&id=%ID%</server> </serverlist> <interval>12h</interval> </report> <crashdump> <serverlist> <server priority="3">https://updatesa.multitheftauto.com/sa/crashdump/?v=%VERSION%&id=%ID%&file=%FILE%</server> <server priority="4">https://updatesa.multitheftauto.com/sa/crashdump/?v=%VERSION%&id=%ID%&file=%FILE%</server> <server priority="5">http://mta-updatesa.yomg.net/sa/crashdump/?v=%VERSION%&id=%ID%&file=%FILE%</server> </serverlist> <duplicates>0</duplicates> <maxhistorylength>100</maxhistorylength> </crashdump> <gtadatafiles> <serverlist> <server priority="3">https://updatesa.multitheftauto.com/sa/gtadatafiles/?v=%VERSION%&id=%ID%</server> <server priority="4">https://updatesa.multitheftauto.com/sa/gtadatafiles/?v=%VERSION%&id=%ID%</server> <server priority="5">http://mta-updatesa.yomg.net/sa/gtadatafiles/?v=%VERSION%&id=%ID%</server> </serverlist> </gtadatafiles> <trouble> <serverlist> <server>https://updatesa.multitheftauto.com/sa/trouble/?v=%VERSION%&id=%ID%&tr=%TROUBLE%</server> </serverlist> </trouble> <ase> <serverlist> <server priority="2">http://master.multitheftauto.com/ase/mta/?v=%VERSION%&id=%ID%</server> <server priority="2">http://178.21.21.23/priv_china/ase2.dat</server> <server priority="4">http://1mgg.com/affil/mta</server> </serverlist> </ase> <sidegrade> <serverlist> <server priority="3">https://updatesa.multitheftauto.com/sa/sidegrade/?v=%VERSION%&id=%ID%&be=%BETA%&re=%REFER%&wv=%WANTVER%</server> <server priority="4">https://updatesa.multitheftauto.com/sa/sidegrade/?v=%VERSION%&id=%ID%&be=%BETA%&re=%REFER%&wv=%WANTVER%</server> <server priority="5">http://mta-updatesa.yomg.net/sa/sidegrade/?v=%VERSION%&id=%ID%&be=%BETA%&re=%REFER%&wv=%WANTVER%</server> </serverlist> <nobrowselist> <nobrowse version="1.0">1.1n;1.1N;1.1</nobrowse> <nobrowse version="1.1n"></nobrowse> <nobrowse version="1.1">1.1n</nobrowse> </nobrowselist> </sidegrade> <news> <serverlist> <server priority="3">https://updatesa.multitheftauto.com/sa/news/?v=%VERSION%&id=%ID%&be=%BETA%&ln=%LASTNEWS%</server> <server priority="4">https://updatesa.multitheftauto.com/sa/news/?v=%VERSION%&id=%ID%&be=%BETA%&ln=%LASTNEWS%</server> <server priority="5">http://mta-updatesa.yomg.net/sa/news/?v=%VERSION%&id=%ID%&be=%BETA%&ln=%LASTNEWS%</server> </serverlist> <interval>12h</interval> <oldestpost>2010-11-02</oldestpost> <maxhistorylength>3</maxhistorylength> </news> </mastercache> </updater> </mainconfig> So I was wondering if I could change any of these settings for the screen size. Any help?
  14. it should work... hmmm, Show me when you trigger these events and the events.
  15. When triggering a event to client-side, add client,player, or getRootElement(). triggerClientEvent(source,"SOMETHING",getRootElemet())
  16. you have to use client, player, source... etc, Show me the dx code.
  17. Jaysds1

    race server

    Ok, so when you restarted your server, the mapcycler and the race gamemode failed to load... hmmm, i suggest to download the resources again: http://code.google.com/p/mtasa-resources/downloads/list
  18. What weapons replacement?
  19. Jaysds1

    Mysql

    ok, did you tried not choosing the "install Apache as Service"?
  20. Jaysds1

    Mysql

    When you start the installation or when your finish choosing the services?
  21. Jaysds1

    Mysql

    How can't you install Xampp? and here's a forum for it and a usersystem: https://forum.multitheftauto.com/viewtopic.php?f=108&t=34686
  22. Thanks for the tutorial...
  23. Jaysds1

    Mysql

    Some one showed me how, Heres the link: you could try this or this.
  24. Put it in your script... it's client-side and server-side.
  25. Do you mean the XAMPP ? I have it but i don't understand it. I'll send screenshots to you how to get the Database, Username, Password and Host.
×
×
  • Create New...