What's new

Problem z wej?ciem na serwer

Status
Not open for further replies.

luki34

Active User
Joined
Apr 12, 2008
Messages
93
Reaction score
3
Witam mam problem z wej?ciem na serwer w configu ustawi?em wszystko jak trzeba ip i wgl a tutaj co? takiego przy odpaleniu silnika. Jak wchodz? i pr?buje si? logowa? to nawet mi si? nie pojawia menu postaci czy tam wyb?r postaci jak kto woli.

Code:
[06/08/2012 19:12:50] [Error - CreatureScript Interface] 
[06/08/2012 19:12:50] In a timer event called from: 
[06/08/2012 19:12:50] data/creaturescripts/scripts/spawn.lua:onSpawn
[06/08/2012 19:12:50] Description: 
[06/08/2012 19:12:50] data/creaturescripts/scripts/spawn.lua:4: attempt to index field '?' (a nil value)
[06/08/2012 19:12:50] stack traceback:
[06/08/2012 19:12:50] 	data/creaturescripts/scripts/spawn.lua:4: in function <data/creaturescripts/scripts/spawn.lua:1>

Tutaj jest ten plik spawn:

Code:
local function doPokemonRegisterLevel(cid)
	if not isCreature(cid) then return true end
	if getWildPokemonLevel(cid) == -1 then
if not pokes[getCreatureName(cid)].offense then
doRemoveCreature(cid)
return true
end
		setWildPokemonLevel(cid)
	end
end

local function doSetRandomGender(cid)
	if not isCreature(cid) then return true end
	local gender = 0
	local name = getCreatureName(cid)
	if not newpokedex[name] then return true end
	local rate = newpokedex[name].gender
		if rate == 0 then
			gender = 3
		elseif rate == 1000 then
			gender = 4
		elseif rate == -1 then
			gender = 0
		elseif math.random(1, 1000) <= rate then
			gender = 4
		else
			gender = 3
		end
	doCreatureSetSkullType(cid, gender)
end

function onSpawn(cid)

	registerCreatureEvent(cid, "GeneralConfiguration")
	registerCreatureEvent(cid, "DirectionSystem")
	registerCreatureEvent(cid, "CastSystem")

	if isSummon(cid) then
		registerCreatureEvent(cid, "SummonDeath")
	return true
	end

	registerCreatureEvent(cid, "Experience")

	addEvent(doPokemonRegisterLevel, 5, cid)
	addEvent(doSetRandomGender, 5, cid)

return true
end
 

Kahras

Senior User
Joined
Aug 26, 2011
Messages
2,714
Reaction score
167
Age
25
Odp: Problem z wej?ciem na serwer

Tzn jak sie nie myl? to chodzi o to ?e w twoim silniku nie ma funkcji:
- onSpawn
- function doSetRandomGender
- function doPokemonRegisterLevel
 

luki34

Active User
Joined
Apr 12, 2008
Messages
93
Reaction score
3
Odp: Problem z wej?ciem na serwer

No chyba tak ^^ mo?esz pom?c ? Jeszcze nie wiem co si? dzieje po prostu nie mog? wbi? na serwer jako? nie czyta chyba mojego ip a mam sta?e.
 
Last edited:

luki34

Active User
Joined
Apr 12, 2008
Messages
93
Reaction score
3
Odp: Problem z wej?ciem na serwer

Od?wie?am Prosz? o pomoc.
 
Status
Not open for further replies.
Top