-
Posts
814 -
Joined
-
Last visited
Everything posted by Wei
-
google and youtube knows everything
-
U need to make it lol. This is only arrest and punish. Like if you dm player you get wanted level...
-
Yeah I will start learning mysql right away
-
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
-
I've forgot to put it in the meta. Sory for disturbing you. Thanks
-
<vehicles> <blazyVehicleID>411</blazyVehicleID> <blazyVehicleName>Infernus</blazyVehicleName> <blazyVehicleLocation>1123, 1233, 15</blazyVehicleLocation> <blazyVehicleHealth>851</blazyVehicleHealth> </vehicles> I set those on the server script
-
debugscript says: ERROR:8: attempt to call global 'guiCreateWindow' ( a nil value )
-
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 ?
-
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
-
If you dont know the default are username: root password: host: localhost database: YOU NEED TO MAKE DATABASE IN THE PHPmyAdmin
-
You can set the lines at Settings/Interface ...
-
so what? i've just got idea for virtual gamers an the tag is allmost the same
-
I don't know allmost nothing about mysql scripting. You need to get x,y,z to put it in table I think.
-
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!!!
-
No. Settings.xml and sql resource. To the database, username, password, host is right
-
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
-
I think something is wrong now with connection. Look at your settings.
-
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.
-
did you think that you need to save text somewhere ? EDIT: and why are you canceling event onPickupHit ?
-
Lol the server is all shodown only names and for some resources color changed
-
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.
-
Try attachElements ( 1250, source, 0, 0, 1.5 )
