SA-MP Forums Archive
Coins question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Coins question (/showthread.php?tid=359210)



Coins question - farCry.xD - 13.07.2012

Hey , I maked my own coins system , and i don't know how to give player some coins when player finish a job with checkpoints ...
Here is the Enum :
Код:
enum PLAYER_MAIN
{
   Coins
}
new pInfo[MAX_PLAYERS][PLAYER_MAIN];
What I need to put at the last checkpoint ?
Thx


Re: Coins question - DarrenReeder - 13.07.2012

I'm not sure what you're asking... Here is what an enum would look like:
pawn Код:
enum PLAYER_MAIN
{
     Coins,
}
new pInfo[MAX_PLAYERS][PLAYER_MAIN];
Now, on the last checkpoint you would use

pawn Код:
new value = 5; // how many coins do you want to give the player?
pInfo[playerid][Coins] += value;



Re: Coins question - Devilxz97 - 13.07.2012

Quote:
Originally Posted by farCry.xD
Посмотреть сообщение
Hey , I maked my own coins system , and i don't know how to give player some coins when player finish a job with checkpoints ...
Here is the Enum :
Код:
enum PLAYER_MAIN
{
   Coins
}
new pInfo[MAX_PLAYERS][PLAYER_MAIN];
What I need to put at the last checkpoint ?
Thx
show me ur last checkpoint . .