Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

PvP Reward


elementaldisaster
 Share

Recommended Posts

Hey I'm trying to add a currency which can be used at arenas and other PvP areas which is distributed through killing players.

In server ModCombat under PlayerAttackPlayer sub i added           

```
Call GiveInvItem(Index, 50, attacker)
```
right under
```
Call PlayerMsg(attacker, "You received no exp.", BrightBlue)
```Upon compiling i get "Compile Error: Variable not defined" and "Index" is highlighted.

Before someone comes and start calling me a brainless fuck, i just want to say that this is my first attempt at writing a code without a tutorial, and i got what i have already through sifting through the source and trying to find something similar.

Also, I'm posting this to learn, if you simply correct me and do not educate me as to why it wasn't right then I'm not learning anything, am I?

All help is appreciated, as long as its actually help.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...