PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Corayzon on 31 May, 2004, 02:59:09

Title: problems calling functions
Post by: Corayzon on 31 May, 2004, 02:59:09
hey guys...

i got quite a little problem, that is as follows...

i have the function banUser(sBanner, sToBan, sReason)...

now ptokax wont execute this function at all! and it doesnt pass any errors.

But if i change the name to ban2User then it will execute...

i just want to know if this is because ptokax allready has a global function called banUser, or is it part of another problem.

note:: im working with ptokax 0.3.3.0 [d15.25]
also:: the script that im having these problems with can be downloaded from ere (http://cslave.no-ip.org/cslave_1.0_0.0_buged.rar)

thankz guys!

Title:
Post by: Corayzon on 31 May, 2004, 03:03:31
After some more testing i have found...

that with the function getBan deleted from MY scripts...

ptokax doesnt send 'attemp to call function 'whatever' a nill value'

so it seems that ptokax doesnt use this function, but it does seem to be declared

please help
Title:
Post by: Corayzon on 31 May, 2004, 03:23:47
stupid me... the kicking.lua file had 2 declerations and which the second one loaded is empty

dardidardidaaarrrrr!

*smakes head on wall*