Okay, yesterday I spent a few hours making my bot use hash tables instead of text files. One problem it has to write about 20 lines of data to a hash table asap, but it's not finishing its job it doesn't write all of the data.

Code:
 if ($1 isnum 1-127) {
    hdel -w players *
    write IP $+ $asctime(mm-dd-yyyy) $+ .txt $2 $+ : $+ $gettok($gettok($4,3,9),1,59)
    set %ip $+ $2 $gettok($gettok($4,3,9),1,59)
    write playerinfo.txt $1-
    .timeraddhash $+ $2 -m 1 700 hadd players $2 $gettok($4,1,9) $1 $gettok($gettok($4,3,9),1,59)
  


That's the script excerpt the table is made on start via hmake players 12. Is 12 not big enough? The problem is I never know the amount of data that needs to be writted into the hash table, it can be anywhere from 1-127.
That was an example it has to write players playername side playerID IP address
1 tjoyfull1 746 GDI 235 39 000.31.22
2 thickerme 424 NOD 349 30 001.33.02
3 clpgunner 2929 NOD 581 33 000.29.13
4 marine249 2316 NOD 274 42 000.50.21
5 tlcwilldc 539 NOD 309 33 001.42.57
6 alwish 300 NOD 311 39 000.19.45
7 vegitam 1082 GDI 276 39 001.24.07
8 jlb132 2229 GDI 248 44 000.55.45
9 sleepy725 980 NOD 268 40 001.56.43
10 te3sla987 106 GDI 623 47 000.04.05
11 cjasper3 5 GDI 232 42 000.28.28
12 ozuarka 618 NOD 347 45 000.36.56
13 userjohn1 1566 GDI 432 43 000.15.18
14 death5228 185 GDI 492 35 000.14.21
15 HKrebaz 1504 GDI 405 40 001.12.09
16 coach970 135 GDI 515 45 000.03.57
17 unsun 475 NOD 329 37 000.22.30
18 snipeevo 2366 NOD 295 27 000.23.59

[Edit: it might be good to add it adds about 6 lines and stops after player id 6 or so]

Last edited by SS217; 16/05/04 04:57 PM.