-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
Eu sei, executesSQL... é facil pra ele.
-
Oh, i didn't know. You're welcome
-
function createVehicleCommand ( thePlayer, commandName, carName ) local x, y, z = getElementPosition ( thePlayer ) if (type(tonumber(carName)) == "number") then if tonumber(carName) > 400 and tonumber(carName) < 611 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) else local veh = createVehicle(carName, x+5, y, z) outputChatBox("Your " .. getVehicleName(veh) .. " (#" .. tonumber(carName) .. ") was spawned with an ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end else local carModel = getVehicleModelFromName(carName) if not carModel then outputChatBox("That is not a valid car name") else createVehicle(carModel, x+5, y, z) outputChatBox("Your " .. getVehicleName(carModel) .. " (#" .. carModel .. ") was spawned with and ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end end end addCommandHandler("v", createVehicleCommand)
-
Try my code, I edited it.
-
Oh, I didnt saw at down. @Ontopic Why are you copy and paste? It wont work, try read.
-
Please show us your error, if you dont know how to get, just use /debugscript 3 in game.
-
Are you using hamachi? If not, there is no need to change ip. Just change to ""
-
MySQL: dbConnect dbQuery getAccountName ou getPlayerSerial SQLite: executeSQLCreateTable executeSQLInsert executeSQLQuery executeSQLSelect executeSQLUpdate getAccountName ou getPlayerSerial WARNING: Se você esta usando "getAccounts" e "getAllAccountData" com toptimes, seu server vai ficar ult lag.
-
See my edited.
-
function createVehicleCommand ( thePlayer, commandName, carName ) local x, y, z = getElementPosition ( thePlayer ) if (type(tonumber(carName)) == "number") then if tonumber(carName) > 400 and tonumber(carName) < 611 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) else local id = getElementModel(carName) createVehicle(carName, x+5, y, z) outputChatBox("Your " .. getVehicleName(id) .. " (#" .. tonumber(carName) .. ") was spawned with an ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end else local carModel = getVehicleModelFromName(carName) if not carModel then outputChatBox("That is not a valid car name") else createVehicle(carModel, x+5, y, z) outputChatBox("Your " .. getVehicleName(carModel) .. " (#" .. carModel .. ") was spawned with and ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end end end addCommandHandler("v", createVehicleCommand)
-
please enable set nick Any language (example arabic)
Cadu12 replied to Quited's topic in Suggestions
This can be script, and it's possible. -
Still doesnt work, I have already remote access
-
Do you mean that I have to put lib in my site or main host?
-
Im not using VPS, just using DeluxHost. I tired remote access, does not work.
-
autoConnect = nil autoConnect = setTimer( function() connection = dbConnect("mysql", "dbname=xgclan_mta;host=xg-clan.com", "*", "*") if connection then killTimer(autoConnect) end end , 1000, 0) I am sure, user and pass are ok.
-
Hello, I have problem with dbConnect in host(linux) that I am getting error: "Could not connect", is there fix? Every time im getting error more than 5 days, I can't fix it. PS: dbConnect is working on my localhost.
-
The challenge of making application programmers Maud
Cadu12 replied to hassan.k.s.a's topic in Scripting
I tinhk he mean this: function formNumberToMoneyString ( value ) if tonumber ( value ) then value = tostring ( value ) if string.sub ( value, 1, 1 ) == "-" then return "-"..setDotsInNumber ( string.sub ( value, 2, #value ) ).." $" else return setDotsInNumber ( value ).." $" end end return false end local function setDotsInNumber ( value ) if #value > 3 then return setDotsInNumber ( string.sub ( value, 1, #value - 3 ) ).."."..string.sub ( value, #value - 2, #value ) else return value end end Credits to Zipper -
You're wrong, TAPL. Ontopic: Download MTA resource from googlecode, http://code.google.com/p/mtasa-resources/downloads/list You can use onPlayerFinishDD, onPlayerWinDD for DD/DM.
-
Stop posting three, please wait while anyone post your topic. Im sure he never give you a mods. You must learn Lua or buy scripter.
-
triggerClientEvent triggerServerEvent onClientVehicleCollision
-
Learn Lua, or seach in community.
-
Yes, and XML too.
-
Add textbox input, please.
-
MySQL or SQLite...?