Originally Posted By: maroon
You could write down an invalid value that you strip while reading it:

/writeini -n test.ini section item $iif($1-,$1-,dummy)

if ($remove($readini(test.ini,n,section,item),dummy)) blah blah

Or, more straightforward:

/writeini -n test.ini section item $iif($1-,$1-,$false)

if ( $readini(test.ini,n,section,item) ) blah blah

You could trim down your INI. It appears that User is always 1 token, so you could store the user and points together on the same line at the same time, then later you could read the joint line, and use $gettok(linetext,1,32) for the User and $gettok(linetext,2,32) for the Points if any.


I'm very unfamiliar with the more advanced things in MIRC to be honest. My entire betting script is based off a temporary text file system where every input gets registered into Text files and retrieved when needed. I'm having trouble trying to figure out how to get $gettok to work.

The name and the points are retrieved from 2 different files. The name is retrieved from the Win file and that is being used in $readini to look up how many points they entered in Bets.ini

Last edited by KevinSlice; 03/06/17 07:54 PM.