[Include] Random Useless Functions Include
#7

You are right.very few ppl will use this but the one who use will be satisfied.
Edit: instead of.
pawn Код:
stock TakePlayerMoney(playerid, amount) // Function to take an amount of money from the player.
{
     new moneytake = 0; // Declaring variable 'moneytake'.
     moneytake -= amount; // Did it like this because, for some reason, the compiler likes spewing out errors otherwise.
     GivePlayerMoney(playerid, moneytake); // Give player the amount from above. (or rather, take)
}
you could have simply done
pawn Код:
stock TakePlayerMoney(playerid, amount) // Function to take an amount of money from the player.
{
   GivePlayerMoney(playerid, -amount); // Give player the amount from above. (or rather, take)
}
Reply


Messages In This Thread
Random Useless Functions Include - by TheBetaFox - 26.01.2012, 16:22
Re: Random Useless Functions Include - by T0pAz - 26.01.2012, 16:33
Re: Random Useless Functions Include - by TheBetaFox - 28.01.2012, 06:20
Re: Random Useless Functions Include - by Niko_boy - 28.01.2012, 10:54
Re: Random Useless Functions Include - by Soumi - 28.01.2012, 13:37
Re: Random Useless Functions Include - by TheBetaFox - 28.01.2012, 14:57
Re: Random Useless Functions Include - by [HK]Ryder[AN] - 28.01.2012, 15:09
Re: Random Useless Functions Include - by Biesmen - 28.01.2012, 15:20
Re: Random Useless Functions Include - by [HK]Ryder[AN] - 28.01.2012, 15:36
Re: Random Useless Functions Include - by TheBetaFox - 29.01.2012, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)