I have so many questions, nothing ever works, anyone willing to discord?

Quote:

on *:load: {
/hmake tempHash ; <-- only the 1st line work same using aliases
/hmake score
/hload score score.ini
}


on *:text:!guess *:#:{
if ($regex($2,^[1-9]$)) {<-- this is fine thanks god like, doing the regex was the easiest part... how.
/hadd -s tempHash $nick $2- <-- this sometimes work, sometimes not ?? since on load stuff is not working correctly i use this /hadd -sm so it create the table on the fly
}
}

on *:text:!winner *:#:{
set %i 1
set %nwin $hfind(tempHash, $2-,0).data
while ( %i <= %nwin ) {
set %wname $hfind(tempHash, $2-, %i).data <-maybe I don't really need this line
if ($hfind(score, %wname, 1)) {
set %points $hget(score, %wname)
/hadd -s score %wname $calc(%points + 500)
}
else {
/hadd -s score %wname 500
}
inc %i
}
/hfree tempHash
/hsave -i score score.ini <-- after I restart mirc this overwrite the file losing data no matter if I -a
}


honestly i don't even understand this post you know, it's just so many things that work on other people scripts but never work on my end, like I copy and paste a dude's script, it doesn't work as intended, almost like if I had a outdated version of mirc (using latest actually) or... idk man, if you can't understand where I need the help I will try to break things line per line. I almost giving up and moving on, I never had to ask help on forums when learning other languages.