Print all PVars
#1

Hey,

I need help with a little problem. For debugging, I try to print all PVars a player has. I guess I need the functions

Код:
native GetPVarsUpperIndex(playerid);
native GetPVarNameAtIndex(playerid, index, ret_varname[], ret_len);
native GetPVarType(playerid, varname[]);
but I dont find any documentation about them. Any help?
Reply
#2

pawn Код:
new varname[64];
for(new i=0; i < GetPVarsUpperIndex(playerid); i++)
{
    GetPVarNameAtIndex(playerid, i, varname, sizeof(varname));
    printf("PVar   index: %d   varname: %s", i, varname);
}
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)