Jump to content

Wei

Members
  • Posts

    814
  • Joined

  • Last visited

Everything posted by Wei

  1. Wei

    MTA Paradise.

    google and youtube knows everything
  2. Wei

    legalsystem

    U need to make it lol. This is only arrest and punish. Like if you dm player you get wanted level...
  3. Wei

    Some to explain

    Yeah I will start learning mysql right away
  4. Wei

    Some to explain

    I wanna make the vehicle system based on the xml. So can you explain me how can I: So when player bought a vehicle. It puts it in the xml. I know that. But how can I make that player buys a secund vehicle it puts to the new node. Like: i have that: ( when player buy the first car ) 411 but when the player buy the secund one does like this: 411 and continue like that 411 411 411 to infinity. Thanks
  5. Wei

    badArgument

    I've forgot to put it in the meta. Sory for disturbing you. Thanks
  6. Wei

    badArgument

    <vehicles> <blazyVehicleID>411</blazyVehicleID> <blazyVehicleName>Infernus</blazyVehicleName> <blazyVehicleLocation>1123, 1233, 15</blazyVehicleLocation> <blazyVehicleHealth>851</blazyVehicleHealth> </vehicles> I set those on the server script
  7. Wei

    Error

    debugscript says: ERROR:8: attempt to call global 'guiCreateWindow' ( a nil value )
  8. Wei

    badArgument

    function refresh() local theVehXML = xmlLoadFile("vehicle.xml") local node = xmlFindChild ( theVehXML, getPlayerName(getLocalPlayer()).."VehicleID", 0 ) local success = xmlNodeGetValue ( node ) local node1 = xmlFindChild ( theVehXML, getPlayerName(getLocalPlayer()).."VehicleName", 0 ) local success1 = xmlNodeGetValue ( node1 ) local node2 = xmlFindChild ( theVehXML, getPlayerName(getLocalPlayer()).."VehicleLocation", 0 ) local success2 = xmlNodeGetValue (node2 ) local node3 = xmlFindChild ( theVehXML, getPlayerName(getLocalPlayer()).."VehicleHealth", 0 ) local success3 = xmlNodeGetValue ( node3 ) guiSetText(theVehID, tostring( success ) ) guiSetText(theVehName, tostring( success1 ) ) guiSetText(theVehLocation, tostring( success2 ) ) guiSetText(theVehHealth, tostring( success3 ) ) end It say for some bad argument whats wrong ?
  9. Wei

    MTA Paradise.

    You said you have xampp installed. I tryed to connect with a webhosting but it never worked for me... So I can not help you here
  10. Wei

    MTA Paradise.

    If you dont know the default are username: root password: host: localhost database: YOU NEED TO MAKE DATABASE IN THE PHPmyAdmin
  11. You can set the lines at Settings/Interface ...
  12. so what? i've just got idea for virtual gamers an the tag is allmost the same
  13. I don't know allmost nothing about mysql scripting. You need to get x,y,z to put it in table I think.
  14. Wei

    MTA Paradise.

    You have xampp installed right ?ty just type here your database name, password(if you have it), and username. local server = get( "server" ) or "localhost" local user = get( "user" ) or "username" local password = get( "password" ) or "password" local db = get( "database" ) or "database" local port = get( "port" ) or 3306 local socket = get( "socket" ) or nil But this will check for settings.xml first. Be sure you have this inside: "@sql.username" value="username" /> "@sql.password" value="password" /> "@sql.database" value="database" /> "@sql.hostname" value="localhost" /> "@sql.port" value="3306" /> "@sql.socket" value="/var/run/mysql/mysql.sock" /> change the username password and database! AND GIVE ADMIN PERMISSIONS TO THE SQL RESOURCE!!!
  15. Wei

    MTA Paradise.

    No. Settings.xml and sql resource. To the database, username, password, host is right
  16. infopoint = createPickup(-206.5537109375, 1132.1015625, 19.7421875, 3, 1239) -- ServerSide! function info (thePlayer) outputChatBox("Welcome To Fort Carson Roleplay Server",thePlayer) end addEventHandler ( "onPickupHit", infopoint, info ) function createinfo(thePlayer, commandName, ...) if info then if (exports.global:isPlayerAdmin(thePlayer)) then local x,y,z = getElementPosition(thePlayer) local message = table.concat({...}, " ") infopointpickup = createPickup(x, y, z, 3, 1239, 1) setElementData( infopointpickup,"Message", message ) addEventHandler("onPickupHit", infopointpickup, infohit) end else outputChatBox("SYNTAX: /" .. commandName .. " [info]", thePlayer) end end addCommandHandler("createinfo", createinfo) function infohit(thePlayer) message = getElementData( infopointpickup,"Message") outputChatBox("" .. message .."",thePlayer) end Fixed and tested
  17. Wei

    MTA Paradise.

    I think something is wrong now with connection. Look at your settings.
  18. infopoint = createPickup(-206.5537109375, 1132.1015625, 19.7421875, 3, 1239) -- ServerSide! function info (thePlayer) outputChatBox("Welcome To Fort Carson Roleplay Server",thePlayer) end addEventHandler ( "onPickupHit", infopoint, info ) function createinfo(thePlayer, commandName, info) if (exports.global:isPlayerAdmin(thePlayer)) then if not (info) then outputChatBox("SYNTAX: /" .. commandName .. " [info]", thePlayer, 255, 194, 14) local x,y,z = getElementPosition(thePlayer) local message = table.concat({info}, " ") infopointpickup = createPickup(x, y, z, 3, 1239, 0) setElementData( infopointpickup,"Message", message ) addEventHandler("onPickupHit", infopointpickup, infohit) else createPickup(x, y, z, 3, 1239) end end end addCommandHandler("createinfo", createinfo) function infohit(thePlayer) getElementData( infopointpickup,"Message") outputChatBox("" .. message .."",thePlayer) end something like that. I didn't test the code. it might have some bugs.
  19. did you think that you need to save text somewhere ? EDIT: and why are you canceling event onPickupHit ?
  20. Wei

    MTA Paradise.

    mta_mysql.dll put in modules
  21. Lol the server is all shodown only names and for some resources color changed
  22. Wei

    I cant see marker

    I fixed for him via skype.
  23. Mate if you joined my server you would see its nothing like shodown i have converted the script into fort carson but there are something i dont understand like this i cant get it to work And There Are No Errors Ok give me IP.
  24. Try attachElements ( 1250, source, 0, 0, 1.5 )
×
×
  • Create New...