kekku500 Posted June 10, 2007 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 !
lil Toady Posted June 10, 2007 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) Do not PM me, im not going to read it anyway.
SanZoR Posted June 11, 2007 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? Finnish Multi Theft Auto Networks Community @ http://fin-mta.net OWNED 100mbit fiber linez ownz
DJScripts Posted June 29, 2007 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??
Recommended Posts