Jump to content

problem :lol:


stylo

Recommended Posts

:lol:

i have an money script off this forum but an command won't work yep why do i post this topic couse it don't have anything to do with the topic where this command belongs to

ok my problem is when i type !cash this come's up ingame :

JB_Frozen's cash: $

but nothing more it don't shows how may cash i have i tried everything here is the code ..

  elseif ($3 == !money && %rpg == on) { 
   if ($4 == $null) mta.text $1 $mta.nick($1,$2) $+ 's Cash: $chr(36) $readini($scriptdir $+ RPG.ini,CASH,$4)
   elseif ($4 && %a == -1) mta.pm $1 $2 Error - Absent ID 
   else mta.text $1 $mta.nick($1,%a) $+ 's Cash: $chr(36) $+ $readini($scriptdir $+ RPG.ini,CASH,$4)($1,%a) 

btw it belong to gus script

i hope you guys can help me

Link to comment
:lol:

i have an money script off this forum but an command won't work yep why do i post this topic couse it don't have anything to do with the topic where this command belongs to

ok my problem is when i type !cash this come's up ingame :

JB_Frozen's cash: $

but nothing more it don't shows how may cash i have i tried everything here is the code ..

  elseif ($3 == !money && %rpg == on) { 
   if ($4 == $null) mta.text $1 $mta.nick($1,$2) $+ 's Cash: $chr(36) $readini($scriptdir $+ RPG.ini,CASH,$4)
   elseif ($4 && %a == -1) mta.pm $1 $2 Error - Absent ID 
   else mta.text $1 $mta.nick($1,%a) $+ 's Cash: $chr(36) $+ $readini($scriptdir $+ RPG.ini,CASH,$4)($1,%a) 

btw it belong to gus script

i hope you guys can help me

ok well u can try this:

elseif ($3 == !money && %rpg == on) { 
   if ($4 == $null) mta.text $1 $mta.nick($1,$2) $+ 's Cash: $chr(36) $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,$2)) 
   elseif (%a == -1) mta.pm $1 $2 Error - Absent ID 
   else mta.text $1 $mta.nick($1,%a) $+ 's Cash: $chr(36) $+ $readini($scriptdir $+ RPG.ini,CASH,$mta.nick($1,%a))
}

this should work now, as it was before, u had to add the exact name, eg: !cash jb_frozen, plus it had other errors.

Link to comment

ok realy thx its works

but..

now when i type !money i get this:

JB_Frozen's cash: + 782

JB_Frozen Has no cash

when i win an race and get 15 it wil be this

JB_Frozen's cash: + 15

JB_Frozen Has no cash

so it don't calculates and it is be wrong written in the RPG.ini

there stands: = + 200

so.. if you just want me a little more i appruciate it here is the write code

elseif (%rank == 3) { 
   if (3 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Third! (Money Earned: $chr(36) $+ $calc(15 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,%a) $mta.ip($1,%a) $gus.add($gus.cash($1,$2),$calc(15 * %players))

i will do the rest i just need an (...) dont know that word :)

thx

Link to comment

ul have to post more of the script, i found a couple of bugs, although the script seems to be crap. the poor people with dynamic ip's or people who's ip changes every so often, will never have any money since the cash is stored on IP's.

anyway, heres the fix:

  elseif (%rank == 3) { 
   if (3 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Third! (Money Earned: $chr(36) $+ $calc(15 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $mta.ip($1,$2) $gus.add($gus.cash($1,$2),$calc(15 * %players))
   }
 }

Link to comment

ok i tried and did the same on all parts as. you did with the script but.. still not calculate's and when i type !money there still stands 's cash: $+ 150

has no cash

here is the hole script

alias gus.rpgwin { 
 %players = $mta.server($1).players 
 %rank = $mta.rank($1,$2) 
 if (%rank == 1) { 
   if (2 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came First !yay! (Money Earned: $chr(36) $+ $calc(60 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $mta.ip($1,$2) $gus.add($gus.cash($1,$2),$calc(60 * %players))
   } 
 } 
 elseif (%rank == 2) { 
   if (2 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Second! (Money Earned: $chr(36) $+ $calc(25 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $mta.ip($1,$2) $gus.add($gus.cash($1,$2),$calc(25 * %players))
   } 
 }
 elseif (%rank == 3) { 
   if (3 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Third! (Money Earned: $chr(36) $+ $calc(15 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,$2) $mta.ip($1,$2) $gus.add($gus.cash($1,$2),$calc(15 * %players)) 
   } 
 } 
 elseif (%rank == 4) { 
   if (4 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Fourth! (Money Earned: $chr(36) $+ $calc(10 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,%a) $mta.ip($1,%a) $gus.add($gus.cash($1,$2),$calc(10 * %players)) 
   } 
 } 
 elseif (%rank == 5) { 
   if (5 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Fifth ! (Money Earned: $chr(36) $+ $calc(6 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,%a) $mta.ip($1,%a) $gus.add($gus.cash($1,$2),$calc(6 * %players)) 
   } 
 } 
 elseif (%rank == 6) { 
   if (6 <= %players) { 
     mta.text $1 $mta.nick($1,$2) You Came Sixth ! (Money Earned: $chr(36) $+ $calc(2 * %players) $+ ) 
     !writeini -n " $+ $scriptdir $+ RPG.ini" CASH $mta.nick($1,%a) $mta.ip($1,%a) $gus.add($gus.cash($1,$2),$calc(2 * %players)) 
   } 
 } 
 else mta.text $1 $mta.nick($1,$2) came in %rank place 
} 

good luck anyways it don't write an IP in the file .. the nick gets read again good luck you make other people happy to :)

Link to comment
  • Recently Browsing   0 members

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