PtokaX forum

Archive => Archived 5.1 boards => Help with scripts => Topic started by: speedX on 16 August, 2006, 09:39:49

Title: Poll bot error.....
Post by: speedX on 16 August, 2006, 09:39:49
hey u all plzz help me...
I was using PtokaX DC Hub 0.3.5.0 and now i am using Ptokax DC hub 0.3.5.1 so some script are not functioning properly.....plz help....


This is the error..

Quote
Syntax ...:\PtokaX 0.3.5.1\scripts\Poll.Bot.v.1.1.LUA5-TTB.lua:77: attempt to index global 'PollSettings' (a nil value)

i don want any other script so plzzz modify this 1 only...


This is the script


Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 12:39:19
hey bastya_elvtars need ur help here too.....plzzzzz
Title: Re: Poll bot error.....
Post by: jiten on 16 August, 2006, 13:07:05
Quote from: speedX on 16 August, 2006, 09:39:49
hey u all plzz help me...
I was using PtokaX DC Hub 0.3.5.0 and now i am using Ptokax DC hub 0.3.5.1 so some script are not functioning properly.....plz help....

Seems to me that you haven't copied the existing and required .tbl files from your older PX version.
Title: Re: Poll bot error.....
Post by: bastya_elvtars on 16 August, 2006, 13:10:32
Quote from: jiten on 16 August, 2006, 13:07:05
Seems to me that you haven't copied the existing and required .tbl files from your older PX version.

Deus ex machina... ;-)
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 13:22:53
yup u were rite jiten..thx.......now i copied them properly..but now again it is showing one error

This is the error
QuoteSyntax ...X & Scripts\test\scripts\Poll.Bot.v.1.1.LUA5-TTB.lua:435: attempt to call a table value


Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 13:25:26
I am not able to start a new poll now...
Title: Re: Poll bot error.....
Post by: jiten on 16 August, 2006, 13:53:54
Quote from: speedX on 16 August, 2006, 13:22:53
yup u were rite jiten..thx.......now i copied them properly..but now again it is showing one error

That's because the script you're using is a LUA 5.0 one.
Therefore, to become functional, it must be converted to LUA 5.1.

You can use Mutor's 50to51 converter and then post your progress.
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:03:04
but tht 50to51 converter is a script.....how do i use it???plz help..
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:10:39
i tried....but no use.....can u plzz tel me the procedure....
Title: Re: Poll bot error.....
Post by: jiten on 16 August, 2006, 14:15:08
Those syntax errors that you are getting are table-related.

You must replace every for i,v in tTable do occurrence with for i,v in pairs(tTable) do [or ipairs, depending on the situation].

I've attached the single and not tested .lua file with those small mods.
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:28:58
nope this one also didn work......it is showing me the first error now..

QuoteSyntax ...:\PtokaX 0.3.5.1\scripts\Poll.Bot.v.1.1.LUA5-TTB.lua:77: attempt to index global 'PollSettings' (a nil value)

AND WHEN I ADD THE OLD .tbl files IT SHOWING THIS ERROR

QuoteSyntax Poll.Bot.v.1.1.LUA5-TTB.lua:59: pollsettings.tbl for [BOT]Poll not found
Title: Re: Poll bot error.....
Post by: jiten on 16 August, 2006, 14:35:23
Quote from: speedX on 16 August, 2006, 14:28:58
nope this one also didn work......it is showing me the first error now..

As you can see in the syntax error, the file(s) is/are missing.

Have you restarted your scripts after moving the .tbl(s)?
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:37:00
yup i tried everything....but no use....
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:38:34
i didn get tht replace thing...could u plzz elaborate tht coz i want this excellent script.....
Title: Re: Poll bot error.....
Post by: jiten on 16 August, 2006, 14:49:27
Quote from: speedX on 16 August, 2006, 14:37:00
yup i tried everything....but no use....

That's probably because you've done something wrong there.

Anyway, I've updated the above .rar package with all the necessary files [.lua/.tbl].
Title: Re: Poll bot error.....
Post by: speedX on 16 August, 2006, 14:58:21
thanx jiten.....now it works fine.....i am really thankfull to u....thx again..