What's new

Pomocy Baza Danych

Status
Not open for further replies.

Calamity

Active User
Joined
Nov 7, 2009
Messages
55
Reaction score
2
Cze?? mam problem , ot?? odpalam ots wszystko jest dobrze. loguje sie na tibie mam tam okre?lone itemy na start, wyrzucam itemy na pod?og? po czym loguje jeszcze raz ! i mam je z powrotem na sobie , robi?em now? baze danych wszystko dzia?a jak nale?y, ale chc? mie? stara baz? danych bardzo wa?ne Gygy 9415661


Prosze o pomoc​
 

Avrellius

Senior User
Joined
Jun 8, 2009
Messages
602
Reaction score
44
Odp: Pomocy Baza Danych

A przed wy??czeniem serwera zrobi?e? save? To pewnie jest tego wina.

Pami?taj, przed ka?dym wy??czeniem serwera wpisz GoD'em / GM'em komend? zapisywania* ; )

*- komend? znajdziesz w pliku comands w g??wnym folderze silnika

Pozdrawiam.
 

Ldrozd

Senior User
Joined
Nov 26, 2008
Messages
572
Reaction score
44
Odp: Pomocy Baza Danych

Save sie robia automatycznie, jesli silnik save. Wina jest plik firstitems.xml

Podmien go na poprawny do folderu mods/:
Code:
<?xml version="1.0" encoding="UTF-8"?>
	<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
 	config = {
 	storage = 30001,
	items = {2050, 2382}
 	}
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
	domodlib('firstitems_config')
	
	function onLogin(cid)
	if(getPlayerStorageValue(cid, config.storage) > 0) then
 	return true
 	end
 	
 	for _, id in ipairs(config.items) do
 	doPlayerAddItem(cid, id, 1)
 	end
	
 	if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
	doPlayerAddItem(cid, 2651, 1)
	else
	doPlayerAddItem(cid, 2650, 1)
	end
 	
	doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
 	setPlayerStorageValue(cid, config.storage, 1)
 	return true
 	end
 	]]></event>
	</mod>
 

Calamity

Active User
Joined
Nov 7, 2009
Messages
55
Reaction score
2
Odp: Pomocy Baza Danych

Nic nie pomog?o nadal to samo jest, ale to na 100% nie jest wina save pos?uchajcie , zmieni?em baze danych na tym samym siliku i jest wszystko okey to nie gadajcie ze to wina save, prosze o pomoc
 
Status
Not open for further replies.
Top