proc
DeathCheck()
if(hp <= 0)
add(cash += usr)
world << "[src] was tagged by [usr]!"
src.Move(locate(199,99,1))
src << "You must wait for 30 seconds before Resurrecting."
sleep(300)
if(icon == 'blue.dmi')
src.Move(locate(10,186,1))
world << "[src] Has Resurrected!"
if(icon == 'red.dmi')
src.Move(locate(191,19,1))
world << "[src] Has Resurrected!"
if(icon == 'ref.dmi')
src.Move(locate(110,122,1))
world << "[src] Has Resurrected!"
What I am trying to do here is add cash to the player who killed the other, I tried several ways.. this is one of them(mostly get the same errors on all of them). Probably not even doing it right tho :)
I get these errors:
loading paintball.dme
combat.dm:16:error:add:bad proc
combat.dm:16:error::missing expression
paintball.dmb - 2 errors, 0 warnings
thanx for any help.
ID:150747
Aug 2 2001, 10:16 am
|
|
In response to Oblivian
|
|
On 8/2/01 3:16 pm Oblivian wrote:
On 8/2/01 1:16 pm Oblivian wrote: i dont think u need add() |
In response to Sariat
|
|
On 8/2/01 3:24 pm Sariat wrote:
On 8/2/01 3:16 pm Oblivian wrote: Well then how will it add 50 bucks to the player.. If I take add out it will just continue with the deathcheck by moving the player that died.. etc, wont add no money to the player who actually killed him. |
In response to Oblivian
|
|
On 8/2/01 3:27 pm Oblivian wrote:
On 8/2/01 3:24 pm Sariat wrote: Never mind, I finally figured it out. Just needed to add usr.cash+=50 after DeathCheck() |
In response to Oblivian
|
|
On 8/2/01 3:40 pm Oblivian wrote:
On 8/2/01 3:27 pm Oblivian wrote: then why did u ask if u didnt try it out first? that was the answer, taking out the add() |
I need this before I can release my first test tonight, please give me a hint or something ! :)