Coins question
#1

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
Reply
#2

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;
Reply
#3

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 . .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)