Function "ShowStats" is not implemented
#2

try this;
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
    {
        if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        if(gPlayerLogged[targetid])
        {
            SendClientMessage(playerid,COLOR_FUNNYGREEN,"STATS");

            new wstring[128];
            new score = PlayerInfo[targetid][pScore];
            GetPlayerHealth(targetid,hp);

            format(wstring, sizeof(wstring), "Level: %d | Hдlsa: %.1f",score, hp);
            SendClientMessage(playerid,COLOR_WHITE, wstring);
        }
    }
        return 1;
    }

edit

Or

pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid])
        {
            SendClientMessage(playerid,COLOR_FUNNYGREEN,"STATS");

            new wstring[128];
            new score = PlayerInfo[playerid][pScore];
            GetPlayerHealth(playerid,hp);

            format(wstring, sizeof(wstring), "Level: %d | Hдlsa: %.1f",score, hp);
            SendClientMessage(playerid,COLOR_WHITE, wstring);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:42
Re: Function "ShowStats" is not implemented - by zSuYaNw - 13.01.2011, 20:46
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:48
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 20:48
Re: Function "ShowStats" is not implemented - by zSuYaNw - 13.01.2011, 20:50
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:51
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 21:06
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 21:08
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 21:26
Re: Function "ShowStats" is not implemented - by Parrot - 14.01.2011, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)