kekku500 Posted June 10, 2007 Share Posted June 10, 2007 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
lil Toady Posted June 10, 2007 Share Posted June 10, 2007 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
SanZoR Posted June 11, 2007 Share Posted June 11, 2007 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 Did u see what is wrong? Link to comment
DJScripts Posted June 29, 2007 Share Posted June 29, 2007 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
Recommended Posts