What's new

Co? mam zle :/

Status
Not open for further replies.

szajer19

Active User
Joined
Nov 20, 2010
Messages
78
Reaction score
0
Odpalam silnik ,chce sie zalogowa? na acc managera lub na jakiegos innego chara i wyskakuje mi taki oto b??d. Mo?e kto? wie o co chodzi ,lub co moge mie? zle :(:(:(
</noscript>
 

Help3R

Forum friend
Joined
Nov 5, 2010
Messages
1,356
Reaction score
265
Odp: Co? mam zle :/

Wszystko dobrze tylko jakim IP si? logujesz?
Ty na serwer logujesz si? za pomoc? wewn?trznego IP , gracze zewn?trznym IP.
Jaki internet posiadasz?
 

szajer19

Active User
Joined
Nov 20, 2010
Messages
78
Reaction score
0
Odp: Co? mam zle :/

loguje si? tym ip : 127.0.0.1
bo jak chce si? zalogowa? przez swoje ip to nie moge i nie wiem czemu.

Net: radi?wka (router) 60kb/s czasami nawet 120kb/s xD
 

Help3R

Forum friend
Joined
Nov 5, 2010
Messages
1,356
Reaction score
265
Odp: Co? mam zle :/

Wejd? w cmd (ta consola czarna) wpisz ipconfig, znajd? Adres IPv4 i tym IP w?a? na serwer.
 

szajer19

Active User
Joined
Nov 20, 2010
Messages
78
Reaction score
0
Odp: Co? mam zle :/

Wpisa?em komende t? co poda?e? i jest kilka adres?w ip ,tylko kt?ry jest ten v4 ?
xDD
</noscript>
 

ErMex

Egzekucja
Joined
Dec 1, 2010
Messages
574
Reaction score
181
Odp: Co? mam zle :/

@up

Spr?buj 192.168.1.101
Jesli to r?wnie? nie pomo?e napisz, pokombinujemy!

Pozdrawiam,
ErMex
 

szajer19

Active User
Joined
Nov 20, 2010
Messages
78
Reaction score
0
Odp: Co? mam zle :/

Wpisa?em to ip : 192.168.1.101
Otwiera mi si? char lista ,jak wybieram chara to nie moze sie zalogowac ,a temple mam dobrze ustawione bo wtedy wyskoczyl by przecierz b?ad wrong position temple...
Poza tym pe?no jakis b??d?w ;/
\/ \/ \/ \/ \/
 

ErMex

Egzekucja
Joined
Dec 1, 2010
Messages
574
Reaction score
181
Odp: Co? mam zle :/

Zamie? sw?j login.lua, kt?ry znajduje si? w data/creaturescripts/scripts/ na ten:
PHP:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end

	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "AdvanceSave")
	return true
end
Oraz w data/lib/004-database.lua zamie? na to:
PHP:
if(result == nil) then
	print("> WARNING: Couldn't load database lib.")
	return
end

Result = createClass(nil)
Result:setAttributes({
	id = -1,
	query = ""
})

function Result:getID()
	return self.id
end

function Result:setID(_id)
	self.id = _id
end

function Result:getQuery()
	return self.query
end

function Result:setQuery(_query)
	self.query = _query
end

function Result:create(_query)
	self:setQuery(_query)
	local _id = db.storeQuery(self:getQuery())
	if(_id) then
		self:setID(_id)
	end

	return self:getID()
end

function Result:getRows(free)
	local free = free or false
	if(self:getID() == -1) then
		error("[Result:getRows] Result not set!")
	end

	local c = 0
	repeat
		c = c + 1
	until not self:next()

	local _query = self:getQuery()
	self:free()
	if(not free) then
		self:create(_query)
	end

	return c
end

function Result:getDataInt(s)
	if(self:getID() == -1) then
		error("[Result:getDataInt] Result not set!")
	end

	return result.getDataInt(self:getID(), s)
end

function Result:getDataLong(s)
	if(self:getID() == -1) then
		error("[Result:getDataLong] Result not set!")
	end

	return result.getDataLong(self:getID(), s)
end

function Result:getDataString(s)
	if(self:getID() == -1) then
		error("[Result:getDataString] Result not set!")
	end

	return result.getDataString(self:getID(), s)
end

function Result:getDataStream(s)
	if(self:getID() == -1) then
		error("[Result:getDataStream] Result not set!")
	end

	return result.getDataStream(self:getID(), s)
end

function Result:next()
	if(self:getID() == -1) then
		error("[Result:next] Result not set!")
	end

	return result.next(self:getID())
end

function Result:free()
	if(self:getID() == -1) then
		error("[Result:free] Result not set!")
	end

	self:setQuery("")
	local ret = result.free(self:getID())
	self:setID(-1)
	return ret
end

Result.numRows = Result.getRows
function db.getResult(query)
	if(type(query) ~= 'string') then
		return nil
	end

	local ret = Result:new()
	ret:create(query)
	return ret
end
 

szajer19

Active User
Joined
Nov 20, 2010
Messages
78
Reaction score
0
Odp: Co? mam zle :/

Jednak to nic nie pomog?o ,zn?w wyskakuje jaki? b??d...

Wk?***** si? i ?ci?g?em inny silniczek ,i na nim normalnie all dzia?a.
Dzi?kuje all..za starania :p ...
Notka moderatorska:
Skoro tak to zamykam
 
Last edited by a moderator:
Status
Not open for further replies.
Top