Getting numeric value from a variable name formatted into a string
#3

I don't think that's what I'm after, let me show a clearer example that I thought of.

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;
}
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".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)