| Tematy otagowane jako: straszne |
| 1. Straszne bledy w msql |
Witam mam problem, postanowi?em postawi? serwer na ogrpg-db i DB2 lecz mam problem w konsoli mianowicie :
[code][2018-01-11 20:42:53] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause' [DUP x6]
[2018-01-11 20:42:53] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause'
[2018-01-11 20:42:55] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause' [DUP x2]
[2018-01-11 20:42:55] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'data' in 'where cl[/code]
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Settings
DBHandler=nil
DBName="dsadasdsadsa"
DBUser="dsadsadasdasd"
DBPass="dssdadsasdadsdsasdads"
DBHost="sddsasdasdsdsdsd"
-- Functions
function dbSet(...)
if not {...} then return end
local stringe=dbPrepareString(DBHandler,...)
local query=dbExec(DBHandler, stringe)
return query
end
function dbGet(...)
if not {...} then return end
local stringe=dbPrepareString(DBHandler,...)
local query=dbQuery(DBHandler, stringe)
local result=dbPoll(query, -1)
return result
end
addEventHandler("onResourceStart", resourceRoot, function()
DBHandler=dbConnect("mysql&... |
| 2. Straszne lagi na serwerze. |
Witam, mam straszne lagi na serwerze, gdy w??cze ogrpg-gui. |
| 3. Straszne lagi |
| Witam, kiedy? gra?em w GtaV ONLINE i chodzi?o ?adnie w 150 fpskach, teraz po przerwie, moje podzespo?y komputerowe si? nic nie zmieni?y, a GtaV ONLINE si? zacina, przy czym tryb fabularny nie... Wiem ?e to nie wina internetu bo po 1 Internet mam dobry, a po 2 mojemu bratu chodzi bez zcin |
| 4. Straszne lagi co jest nie tak ? |
[lua]createBlip(-1624.73, 690.99, 7.19, 30,2,0,0,0,0,0,275)
function getPointFrontOfElement(element,distance)
if not element then return end
local x, y, z = getElementPosition ( element )
local rx, ry, rz = getElementRotation ( element )
x = x + (distance * (math.sin(math.rad(-rz))) )
y = y + (distance * (math.cos(math.rad(-rz))) )
return x,y,z
end
function getPositionFromElementAtOffset(element,x,y,z)
if not element then return end
if not x or not y or not z then
return x, y, z
end
local matrix = getElementMatrix ( element )
local offX = x * matrix[1][1] + y * matrix[2][1] + z * matrix[3][1] + matrix[4][1]
local offY = x * matrix[1][2] + y * matrix[2][2] + z * matrix[3][2] + matrix[4][2]
local offZ = x * matrix[1][3] + y * matrix[2][3] + z * matrix[3][3] + matrix[4][3]
return offX, offY, offZ
end
function getVehicleWheelPosition(vehicle,wheel)
local x, y, z = 0, 0, 0
local minX, minY, minZ, maxX, maxY, maxZ = getElementBoundingBox(vehicle)
if wheel == 1 then
x, y, z = getPositionFromElementAtOffset(vehicle, minX, maxY, minZ)
elseif wheel == 2 then
x, y, z = getPositionFromElementAtOffset(vehicle, minX, -maxY, minZ)
elseif wheel == 3 then
x, y, z = getPositionFromElementAtOffset(vehicle, maxX, maxY, minZ)
elseif wheel == 4 then
x, y, z = getPositionFromElementAtOffset(vehicle, maxX, -maxY, minZ)
end
return x, y, z
end
function onClientRender()
if isPedInVehicle(localPlayer) then
local vehicle = ... |
|