PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: jsjen on 18 April, 2004, 13:07:04

Title: our modified trivia bot doesnt work properly
Post by: jsjen on 18 April, 2004, 13:07:04
I hope someone can help, sorry I post so much. We are learners trying hard to learn

I get these errors:
Syntax Error: attempt to compare nil with number
Syntax Error: bad argument #1 to `strlen' (string expected, got nil)

they dont seem to be fatal though.

Also she doesnt work in her own window, people cant answer questions.

This is a link to the script  V

http://jsjen.customer.netspace.net.au/trivia.lua (http://jsjen.customer.netspace.net.au/trivia.lua)

If I need to post this bot another way please tell me
Title:
Post by: [NL]trucker on 18 April, 2004, 14:22:24
jsjen


first off all you arent requesting for a script but for help with a script so you had to post in that section originally.:-))

second if we cant look at the script we cant see what is wrong with it.


Also she doesnt work in her own window, people cant answer questions

seems to me a wrong setting in the cfg. file of the script

perhas one of the mods can replace this topic to the place where it belongs.
Title:
Post by: jsjen on 18 April, 2004, 14:38:52
the link above takes you to the script

we modified it to try to take random out maybe we screwed it
Title:
Post by: pHaTTy on 18 April, 2004, 14:58:08
*done*

to jsjen, yea u probably most likely did, i wud download and see what i can do but, i aint got time, only scripts posted atm
Title:
Post by: [NL]trucker on 19 April, 2004, 10:49:18
jsjen



Also she doesnt work in her own window, people cant answer questions


-- Default startup mode of Trivia!
lngDefMode = 1 -- (0 = game is played in chat!, 1 = game is played in chat but questions only show for players, 2 = game is played in pm with players)


the basic idear is that players have to join the game to have the possibillity to answer the questions.

if you set this :
lngDefMode = 1
 to
lngDefMode = 0

the game will be shown in main chat

the setting one means that only foks who entered the game can see the questions and also answer them.
Title:
Post by: jsjen on 19 April, 2004, 11:11:48
I understand how the script works, it just stopped working oneday..

I think robocop7 has something to do with it im having quite a bit of trouble with scripts and regging users. We are starting from scratch add in a new script every hour.

Thanks for your help, I would still like someone to have a look at the script oneday if you can.

Thanks Jase