Keslertje2005 Posted April 4, 2007 Posted April 4, 2007 Anyone knows whats wrong with this script for RPS? if (%nick != $null) && (%nick != Player) !hadd RACES $+ stats $+ $mta.nick($1,$2) $calc($readini($scriptdir $+ stats.ini,RACES,$mta.nick($1,$2)) + 1)
Dead-Inside Posted April 4, 2007 Posted April 4, 2007 First of all, specify RACES as a hash to be saved at the bottom (and loaded) Then remove the $+ between RACES and stats
Keslertje2005 Posted April 4, 2007 Author Posted April 4, 2007 } alias savehashseq { !hsave -o RACES stats.ini I have this as Savehash. And with that $+ deleted it says so such table...
Scooby Posted April 4, 2007 Posted April 4, 2007 First of all, specify RACES as a hash to be saved at the bottom (and loaded)Then remove the $+ between RACES and stats Dont do that... lol what exactly are u trying to do Keslertje2005
lil Toady Posted April 4, 2007 Posted April 4, 2007 oooook, if you do not know what you're talking about don't reply Dead-Inside and Keslertje2005, you can't save hashes into INIs, you have to use writeini for that (but you can load a hash from an ini with 'hload -i your.ini') You have to decide what you're gonna use, hashes or inis.. If hashes then: if (%nick != $null) && (%nick != Player) !hadd RACES $mta.nick($1,$2) $+ .stats $calc($hget(RACES,$mta.nick($1,$2) $+ .stats) + 1) or just if (%nick != $null) && (%nick != Player) !hadd RACES $mta.nick($1,$2) $calc($hget(RACES,$mta.nick($1,$2)) + 1) But dont forget to create the RACES hash when the script starts. P.S: /help /hadd
Dead-Inside Posted April 4, 2007 Posted April 4, 2007 Thing is he didn't, he only read from an ini, although that's not really proper either.
Recommended Posts