[help]Variables
#3

Quote:
Originally Posted by FreddoX [BINMAN
]
You should consider using PVars, however I'll provide two examples:

pawn Код:
public OnPlayerSpawn( playerid )
{
GivePlayerMoney( playerid, antidote[ playerid ] - 1 );
}
...or, ideally:

pawn Код:
public OnPlayerSpawn( playerid )
{
GivePlayerMoney( playerid, GetPVarInt( playerid, "antidote" ) - 1 );
}
Hmm.. I never used PVars, i don't even know how it works :b

And it was not that i meant, i mean something like
Код:
antidote[playerid] -1, but not were you set it to -1 but just take one.
Reply


Messages In This Thread
[help]Variables - by Naxix - 17.04.2010, 07:12
Re: [help]Variables - by Calgon - 17.04.2010, 07:17
Re: [help]Variables - by Naxix - 17.04.2010, 08:29
Re: [help]Variables - by Think - 17.04.2010, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)