Quote:
The problem is that sometimes it displays different things for the game
That's because you typoed the filename, too many .txt here: /write -c tempga.txt.txt, since you use $read and its random function to grab a line from a file that is only one line (you should set a variable for that too instead of using a file)
Quote:
and it never shows the $read(giveawayenters.txt) from the line that says timer 1 180
and that's because /timer is a command that accepts a command as its parameter, the $read you have there will evaluate at the time mIRC parses that /timer command, not at the time the command associated for that timer is executed, you need to make sure it's evaluated correctly by using a non evaluated version of those $read, which can be done with the ! identifier prefix:
Code:
timer 1 180 msg # $!read(giveawayenters.txt) has just won this giveaway for a copy of $!read(tempga.txt) $!+ , big thanks to %newgasponsor for sponsoring this giveaway
Notice how I also use it on $+, otherwise it would stick the comma: "$read()," and when mIRC parses that, the comma is ignored


#mircscripting @ irc.swiftirc.net == the best mIRC help channel