Jump to content

Luk-ry

Members
  • Content Count

    10
  • Joined

  • Last visited

Everything posted by Luk-ry

  1. Luk-ry

    MYSQL Problem

    database managing app: http://www.heidisql.com/
  2. Luk-ry

    MYSQL Problem

    It's a mysql server on my local pc
  3. Luk-ry

    MYSQL Problem

    Yes, the database is working
  4. Luk-ry

    MYSQL Problem

    I have a problem with my script: function sqlgetaccountinfo(playerSource) playername = getPlayerName( playerSource ) database = mysql_connect ("localhost", "root", "*****", "mta san andreas accounts") isNameSQL = mysql_query ( database, "SELECT * FROM name" ) outputChatBox ("x"..tostring(isNameSQL).."x", playerSource) isTableCreated = mysql_query ( database, "CREATE TABLE playername(user char (20) );") outputChatBox("x"..tostring(isTableCreated).."x", playerSource) end addCommandHandler("x", sqlgetaccountinfo) It only makes a table with the name playername. How can I make that it write
  5. Luk-ry

    xml problem

    I have a problem with my script.It doesn't work. The debugger shows : Bad argument @ xmlNodeSetValue, Bad argument @ xmlNodefindChild, Bad Argument @ xmlSaveFile and Bad argument @ xmlUnloadFile. Here is my script: function changeSpawnpoint() local root = xmlLoadFile ("spawnpoint.xml") xmlFindChild ( root, "Spawn", 0 ) xmlNodeSetValue ( Spawn, "1") xmlSaveFile ( root ) xmlUnloadFile ( root ) end addCommandHandler ( "x", changeSpawnpoint) and my xml: <root> root>
  6. Luk-ry

    GUI Problem

    The server window shows:"ERROR: GUI\GUI.lua:5: attempt to call global 'guiCreateWindow' (a nil value)
  7. Luk-ry

    GUI Problem

    I have a problem with my script. When i start it i doesn't see the GUI. Here is my script: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUI_Window = guiCreateWindow(639,241,411,550,"Title",true) GUI_Button1 = guiCreateButton(97,389,217,30,"Button1",false,GUIEditor_Window[1]) GUI_Label1 = guiCreateLabel(65,345,278,19,"Label1",false,GUIEditor_Window[1]) guiLabelSetColor(GUI_Label1,255,255,255) guiLabelSetVerticalAlign(GUI_Label1,"top") guiLabelSetHorizontalAlign(GUI_Label1,"left",false) GUI_Button2 = guiCreateButton(97,431,217,30,"Button2",false,GUIEditor_Window[1]) GUI_B
  8. The collision file is inside the dff
  9. I have a problem with my script. When i run it the model is changed but it doesn't load the colision file. Here is the script: function replaceModel() txd = engineLoadTXD ( "data/tropic.txd" ) engineImportTXD ( txd, 454 ) dff = engineLoadDFF ( "data/tropic.dff", 454 ) engineReplaceModel ( dff, 454 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) PS:Sorry for my bad english
×
×
  • Create New...