I don't understand what is wrong here...
#4

Quote:
Originally Posted by Doom8890
Посмотреть сообщение
How about this?

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stats", cmdtext, true, 10) == 0)
    {
        new statsname[128];
        new statsmsg[256];
                new pName[MAX_PLAYER_NAME];
                GetPlayerName(playerid,pName,sizeof(pName));
        format(statsname, 128, "----------Current stats: %s----------", pName);
        SendClientMessage(playerid, COLOR_YELLOW, statsname);
        PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
        format(statsmsg, 256, "Level: [%b] Admin level: [%i] Money: [$%i]", PlayerInfo[playerid][pScore], PlayerInfo[playerid][pAdminLevel], PlayerInfo[playerid][pCash]);
        SendClientMessage(playerid, COLOR_YELLOW, statsmsg);
        return 1;
    }
    return 1;
}
It works, thanks.
Fala lik
Reply


Messages In This Thread
I don't understand what is wrong here... - by Outcast - 08.01.2011, 23:09
Re: I don't understand what is wrong here... - by Doom8890 - 08.01.2011, 23:13
Re: I don't understand what is wrong here... - by Joe Staff - 08.01.2011, 23:14
Re: I don't understand what is wrong here... - by Outcast - 08.01.2011, 23:18
Re: I don't understand what is wrong here... - by Haydz - 08.01.2011, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)