One question ..
#1

Hey,

In order to make my own money ( like West-Side ) money those rcash I think, Do I have to make that using enums?

Like

enum BLAH
{
PlayHardCASH
}

?
Reply
#2

No. Use variables and some stocks to give and take money.
Reply
#3

Quote:
Originally Posted by Los
Посмотреть сообщение
No. Use variables and some stocks to give and take money.
u can use enum as vars too o.0 most of them do it these days
Reply
#4

O.O, Any example?
Reply
#5

pawn Код:
enum BLAH
{
    PLAYHARDCASH
}

new PlayerInfo[MAX_PLAYERS][BLAH];


stock GiveMoney(playerid ,amount)
{
    PlayerInfo[playerid][PLAYHARDCASH]+=amount;
}

stock GetMoney(playerid)
{
    return PlayerInfo[playerid][PLAYHARDCASH]+=amount;
}
Reply
#6

Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
u can use enum as vars too o.0 most of them do it these days
Use enum to one variable, is better use a simple new.
Reply
#7

pawn Код:
new PlayHardCASH[MAX_PLAYERS];
Reply
#8

Hm, Thanks a lot guys! I will test that out!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)