5lave Ots
Active Member
somebody asked for an offline reward talkaction that im working on
and i need to define a player.town id from the query
how to define a local variable ' town_id' from that query?
shall i use player.town_id?
to return me that line
using player.town_id was the answer
and i need to define a player.town id from the query
Lua:
player = db.getResult('SELECT `name`, `town_id` FROM `players` WHERE `name` = "' .. par[1] .. '";')
shall i use player.town_id?
to return me that line
Code:
doPlayerSendMailByName(par[1], chest, town_id)
Post automatically merged:
its solved but i cant delete the postsomebody asked for an offline reward talkaction that im working on
and i need to define a player.town id from the query
how to define a local variable ' town_id' from that query?Lua:player = db.getResult('SELECT `name`, `town_id` FROM `players` WHERE `name` = "' .. par[1] .. '";')
shall i use player.town_id?
to return me that line
Code:doPlayerSendMailByName(par[1], chest, town_id)
using player.town_id was the answer