04.01.2011, 18:44
Hello everyone!
I'm using the GF PlayerInfo-System, but I want to convert it to a PVars System.
Therefour, I want to use #define to let the compiler read it as SetPVarInt etc.
e.g.
But I don't know how to do it, because very often I got things like
for example.
So I wanted to ask, if someone knows, how to let the Compiler know, that it should use PVars instead of the old system using #define?
I dunno how to explain it exactly, so I'm sorry
I'm using the GF PlayerInfo-System, but I want to convert it to a PVars System.
Therefour, I want to use #define to let the compiler read it as SetPVarInt etc.
e.g.
pawn Код:
Old:
if(PlayerInfo[playerid][pAdmin] == 1)
New:
if(GetPVarInt(playerid, "pAdmin") == 1)
pawn Код:
PlayerInfo[playerid][pCash] *= 7;
So I wanted to ask, if someone knows, how to let the Compiler know, that it should use PVars instead of the old system using #define?
I dunno how to explain it exactly, so I'm sorry