[Tutorial] How to make a simple contract system (Good for RP)
#9

Quote:
Originally Posted by Rajat_Pawar
View Post
pawn Code:
enum pInfo
{
   pContract // This will store the price of the contract on somebody's head. If it's 0 then the system will just ignore it
   pFaction
}
You forgot to add this in it:
pawn Code:
new PlayerInfo[MAX_PLAYERS][pInfo];
Anyways, this is hard work and you get a well earned rep and thanks!
Thanks, I'll add it!

Quote:
Originally Posted by gtakillerIV
View Post
Good job.
Thanks!

Quote:
Originally Posted by antonio112
View Post
And honestly, you have mistakes in your script ... Let me give you an example:



The mistake is at the format line:
pawn Code:
format(message2,sizeof(message2), "HQ: A player has put a contract on %s for $%d.", bounty);
Figure it out ...

How about if I do /contract X -2324324 ... That would give me 2324324$ in my hand. You need to check for negative values...

And that's just one, I noticed at a first glance over your tutorial. Overall, it's well explained but you need to be more careful.
I see. I've taken out some things out of the OnPlayerDeath and the command to make it more simple, so it could be I forgot to erase some things. I'll update it right away. And thank you for noticing that you can use negative values. Didn't saw that one... thanks!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)