Stats Command warnings
#2

ok fix code

pawn Код:
dcmd_stats(playerid,params[])
{
    new string[128];
    new name[MAX_PLAYER_NAME];
    name = GetPlayerName(playerid, name, sizeof(name));
    playerid = strval(params);
    if(gPlayerLogged[playerid] = 1)
    {
        format(string, sizeof(string), "| %s Stats:  Kills: %d | Deaths: %d ",name, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]);
        SendClientMessage(playerid, COLOR_GREEN, string);
        return true;
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "Player Not Connected!");
        return true;
    }
    return true;
}
Reply


Messages In This Thread
Stats Command warnings - by aqu - 14.03.2011, 15:52
Re: Stats Command warnings - by Medal Of Honor team - 14.03.2011, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)