• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

problem z db.executeQuery

TracerS

New Member
Joined
Jan 18, 2010
Messages
20
Reaction score
0
;/ mam kolejny problem tyle ze jakis bez sensu

W pliku "nova_quest.lua" mam dopisane zeby zapisywalo nazwy graczy, ktorzy klikneli na skrzynie

LUA:
db.executeQuery('INSERT INTO `nova-quest` (`player_1`, `data`) VALUES ("'.. getPlayerName(cid) ..'", "'.. Time ..'");')

Czasem pojawia sie blad w konsoli po kliknieciu na skrzynie i nie zapisuje...
Code:
data/actions/scripts/nova_quest.lua:15: attempt to index global 'db' (a number value)

potem po jakims czasie / resecie dziala wtf ?
 
tak, ale wyniki wyswietlaja sie na stronie, wiec zrobilem tak ze od razu zapisuje nick a nie GUID zeby potem nie kombinowac no i tmnie to troche zdziwilo bo mam inne skrypty w npc, movements, talk.. ktore tez zapisuja do bazy i nigdy nie bylo problemow z tym db...
 
Back
Top