21.03.2017, 03:57
I don't think that's what I'm after, let me show a clearer example that I thought of.
I don't want to do anything to change the value, I just want the script to think I typed "PlayerInfo[playerid][pAdmin]" rather than "stat".
pawn Код:
function(blah[]) //still pAdmin
{
new string[128],stat[32];
format(stat,sizeof(stat),"PlayerInfo[playerid][%s]",blah);
format(string,sizeof(string),"The value of %s is %i.",blah,stat);
SendClientMessage(playerid,-1,string);
return 1;
}