Jump to content

Whats wrong with this?


Recommended Posts

Posted

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)

Posted
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

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...