Convert PlayerInfo System to PVars with #define
#1

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.
pawn Код:
Old:
if(PlayerInfo[playerid][pAdmin] == 1)

New:
if(GetPVarInt(playerid, "pAdmin") == 1)
But I don't know how to do it, because very often I got things like
pawn Код:
PlayerInfo[playerid][pCash] *= 7;
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)