FapFap 13 Report post Posted December 2, 2018 I'm having this error on gameserver by trying to make this function works... Error: Function: Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted December 2, 2018 Do you have LuaSQL added in your GameServer? Check if it was added correctly. Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted December 2, 2018 16 minutes ago, Angelix said: Do you have LuaSQL added in your GameServer? Check if it was added correctly. Yeah i have, also says on top that LuaSql is loaded Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted December 2, 2018 Try changing “LuaSQL” to “LuaSql” to see how that works. Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted December 2, 2018 4 minutes ago, Angelix said: Try changing “LuaSQL” to “LuaSql” to see how that works. Same thing just tested Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted December 4, 2018 BUMP Quote Share this post Link to post Share on other sites
Fomin 53 Report post Posted January 8, 2019 local accountName = GetActName(role) no? (функция уже есть в GameServer) Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted February 25, 2019 @Fomin I'm having this error.. idk what is wrong zzz Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted March 1, 2019 BUMP Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted March 2, 2019 anyone? Quote Share this post Link to post Share on other sites
Danny 31 Report post Posted March 3, 2019 Whats your SQL Logins? Screenshot your login + screenshot your sql server management studio login. Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted March 5, 2019 On 2/25/2019 at 6:31 PM, FapFap said: @Fomin I'm having this error.. idk what is wrong zzz Wrong MSSQL Server host or login and password pair. Your script cannot connect to the server. Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 6, 2019 On 3/3/2019 at 6:59 PM, Danny said: Whats your SQL Logins? Screenshot your login + screenshot your sql server management studio login. I'm trying this other Function and i'm having such problem LuaErr and LuaSQL Function: ItemInfo Function (Just Testing): Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted April 6, 2019 Send me a PM through discord and I’ll help you. Angelix#2836 Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 6, 2019 2 hours ago, Angelix said: Send me a PM through discord and I’ll help you. Angelix#2836 i dont have a discord x.x Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted April 7, 2019 Show us a screen of your GameServer console where it shows LuaSQL is loaded. Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted April 7, 2019 why do u have this o.O?@Angelix there try change this password maybe ? as vector said Quote Wrong MSSQL Server host or login and password pair. Your script cannot connect to the server. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted April 7, 2019 Just now, mkhzaleh said: why do u have this o.O?@Angelix there try change this password maybe ? as vector said I mean his scripts are going to throw errors when trying to use the item function. He also uses a variable called “amount” and doesn’t declare it anywhere. He also declares the variable “Name” and a table for “Points”, and yet he doesn’t use it, although that’s not a big problem. I think the issue is that LuaSQL is not a registered function by seeing the whole “LuaSQL a nil value” thing? Don’t know much to be honest. Anyway @FapFap, LuaSQL uses the user and password you use for each database at MSSQL, not the encrypted passwords or other users. Also, I don’t know if you have a separate database for the IMPs, if you use IGS, then it should be TradeServer. Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 7, 2019 9 hours ago, Angelix said: I mean his scripts are going to throw errors when trying to use the item function. He also uses a variable called “amount” and doesn’t declare it anywhere. He also declares the variable “Name” and a table for “Points”, and yet he doesn’t use it, although that’s not a big problem. I think the issue is that LuaSQL is not a registered function by seeing the whole “LuaSQL a nil value” thing? Don’t know much to be honest. Anyway @FapFap, LuaSQL uses the user and password you use for each database at MSSQL, not the encrypted passwords or other users. Also, I don’t know if you have a separate database for the IMPs, if you use IGS, then it should be TradeServer. I'm using same user/pw for all, tho just trying to make it work but without success now it doesn't show those errors in gameserver but only the Nil value error. Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted April 7, 2019 (edited) you are not using those variables anywhere in your function, and since you want to make it add 100 imps only so remove those unused things could looks like this ImpsPointCard = function(Player, Item) AddImpsPoints(Player,100) HelpInfo(Player, 0, "bla bla") end Edited April 7, 2019 by mkhzaleh Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 8, 2019 23 hours ago, mkhzaleh said: you are not using those variables anywhere in your function, and since you want to make it add 100 imps only so remove those unused things could looks like this ImpsPointCard = function(Player, Item) AddImpsPoints(Player,100) HelpInfo(Player, 0, "bla bla") end You gave me that function tho XD, still same Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted April 8, 2019 (edited) 1 hour ago, FapFap said: You gave me that function tho XD, still same not really , wasn't missing as this one, and your issue to connect your sql , one more question is your db have mall_point table? Edited April 8, 2019 by mkhzaleh Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 8, 2019 2 hours ago, mkhzaleh said: not really , wasn't missing as this one, and your issue to connect your sql , one more question is your db have mall_point table? yes i have mall_point table Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted April 11, 2019 FapFap has a modified GameServer and somehow it doesn't register the functions, that's why it throws "nil value". He also sent me a GameServer from Lucky's file I think and it's the same thing. When I tried adding LuaSQL to the GameServer provided on files shared by Vector (138 files), it does work. Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 14, 2019 Always same problem when using the Item... Changed Database & made default sa login & pw and still same errors on GS Console when i use the Item.. Any help? e.e Quote Share this post Link to post Share on other sites