Jump to content

givemoney script


kekku500

Recommended Posts

alias give.money {
 var %a = $iif((!$4),$2,$iif(($gus.getid($1,$4) == $null),$2,$v1))
 if ($4- == $null) mta.pm $1 $2 Error! - Type !givemoney 
 elseif (%a == $null) mta.pm $1 $2 Error! - Name not found!
 elseif ($gus.money($1,$2) < $5) mta.pm $1 $2 You cant give money for $mta.nick($1,%a) more than you got!
 elseif ($4 !isnum) mta.pm $1 $2 Error - Type only numbers in  !
 else {
   mta.text $1 $mta.nick($1,$2) has just gave $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 $2 Success transferring $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 %a Success recieved $5 $+ $ from $mta.nick($1,%a) !
   !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) - $5)
   !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) + $5)
 }

anyone can fix problem?

If i try put !givemoney

then it shows message

Error - Type only numbers in !

Link to comment

alias give.money {
 var %a = $iif((!$4),$2,$iif(($gus.getid($1,$4) == $null),$2,$v1))
 if (!$5) mta.pm $1 $2 Error! - Type !givemoney 
 elseif (!%a) mta.pm $1 $2 Error! - Name not found!
 elseif ($5 !isnum) mta.pm $1 $2 Error - Type only numbers in  !
 elseif ($gus.money($1,$2) < $5) mta.pm $1 $2 You cant give money for $mta.nick($1,%a) more than you got!
 else {
   mta.text $1 $mta.nick($1,$2) has just gave $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 $2 Success transferring $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 %a Success recieved $5 $+ $ from $mta.nick($1,%a) !
   !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) - $5)
   !writeini -n money.ini MONEY $mta.nick($1,%a) $calc($readini(money.ini,MONEY,$mta.nick($1,%a)) + $5)
 }
}

you had a few more mistakes in the script (not to count your grammar)

Link to comment
alias give.money {
 var %a = $iif((!$4),$2,$iif(($gus.getid($1,$4) == $null),$2,$v1))
 if (!$5) mta.pm $1 $2 Error! - Type !givemoney 
 elseif (!%a) mta.pm $1 $2 Error! - Name not found!
 elseif ($5 !isnum) mta.pm $1 $2 Error - Type only numbers in  !
 elseif ($gus.money($1,$2) < $5) mta.pm $1 $2 You cant give money for $mta.nick($1,%a) more than you got!
 else {
   mta.text $1 $mta.nick($1,$2) has just gave $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 $2 Success transferring $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 %a Success recieved $5 $+ $ from $mta.nick($1,%a) !
   !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) - $5)
   !writeini -n money.ini MONEY $mta.nick($1,%a) $calc($readini(money.ini,MONEY,$mta.nick($1,%a)) + $5)
 }
}

you had a few more mistakes in the script (not to count your grammar)

Toady, take a new look of your script :lol:

Did u see what is wrong?

Link to comment
  • 3 weeks later...

alias give.money {
 var %a = $iif((!$4),$2,$iif(($gus.getid($1,$4) == $null),$2,$v1))
 if (!$5) mta.pm $1 $2 Error! - Type !givemoney 
 elseif (!%a) mta.pm $1 $2 Error! - Name not found!
 elseif ($5 !isnum) mta.pm $1 $2 Error - Type only numbers in  !
 elseif ($gus.money($1,$2) < $5) mta.pm $1 $2 You cant give money for $mta.nick($1,%a) more than you got!
 else {
   mta.text $1 $mta.nick($1,$2) has just gave $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 $2 Success transferring $5 $+ $ for $mta.nick($1,%a) !
   mta.pm $1 %a Success recieved $5 $+ $ from $mta.nick($1,%a) !
   !writeini -n money.ini MONEY $mta.nick($1,$2) $calc($readini(money.ini,MONEY,$mta.nick($1,$2)) - $5)
   !writeini -n money.ini MONEY $mta.nick($1,%a) $calc($readini(money.ini,MONEY,$mta.nick($1,%a)) + $5)
 }
}

But sould i put in my script:

 elseif (!givemoney $3) give.money $1-

or just type in the server !givemoney??

Link to comment
  • Recently Browsing   0 members

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