Search found 6 matches

by Feengur
Mon Dec 04, 2006 11:26 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

I've fixed the problem.....

I'm using this mod with etadmin, and arguments from et_ConsoleCommand() are returned as strings, NOT integers. So a simple use of 'tonumber(clientID)' fixed all the problems. Now i can clean up the code. Thanks for your help.

-Feengur
by Feengur
Mon Dec 04, 2006 5:44 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

well, i've tried it and it's still not nulling out the value at that table position....
by Feengur
Mon Dec 04, 2006 5:40 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

omg....... how in the hell did i miss that? I couldn't have missed that after all this time!?!? I'll try and let you know of the results. Thanks! :D
by Feengur
Mon Dec 04, 2006 5:00 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

oh yeah, i have noticed a few errors since the post and I have fixed the 'goback' function. :P , referencing the wrong id's :P . I've added print(apos[clientID]) to the rmsaves function, but it's not printing or returning any values?
by Feengur
Mon Dec 04, 2006 4:15 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

Well, i have put prints behind each function, so as they execute in the server i can follow the routes that the calls are being executed, but it seems as though lua is just not writing to the same table, or.... it's just not writing anything at all. Here is the code in it's entirety (i know the stru...
by Feengur
Sun Dec 03, 2006 11:22 pm
Forum: ET Modding
Topic: LUA variable issues
Replies: 8
Views: 9298

LUA variable issues

Hi. I was on a local tj server with a /save /load mod on it and I decided that I would write one of my own with better features to kill the abuse. I ran into a few problems however.... One of my functions is !removesaves (clientNum) , which obviously removes a certain players saved slots. function r...