[HELP] L Admin
#10

Quote:
Originally Posted by FreshDoubleX
Посмотреть сообщение
You can just use one string on every message Much easier.

pawn Код:
#if defined USE_STATS
dcmd_stats(playerid,params[])
{
        new string[128], pDeaths, player1, h, m, s;
        if(!strlen(params)) player1 = playerid;
        else player1 = strval(params);

        if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, red, "Player Not Connected!");
   
        TotalGameTime(player1, h, m, s);
        if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
        format(string, sizeof(string), "> Username: %s", PlayerName2(player1));
        SendClientMessage(playerid, green, string);
        format(string, sizeof(string), "> Kills: %d", PlayerInfo[player1][Kills]);
        SendClientMessage(playerid, green, string2);
        format(string, sizeof(string), "> Deaths: %d", PlayerInfo[player1][Deaths]);
        SendClientMessage(playerid, green, string2);
        format(string, sizeof(string), "> Ratio: %0.2f", Float:PlayerInfo[player1][Kills]/Float:pDeaths);
        SendClientMessage(playerid, green, string2);
        format(string, sizeof(string), "> Money: %d", GetPlayerMoney(player1));
        SendClientMessage(playerid, green, string2);
        format(string, sizeof(string), "> Score: %d", GetPlayerScore(player1));
        SendClientMessage(playerid, green, string2);
        format(string, sizeof(string), "> Time: %d hours %d minutes %d seconds", h, m, s);
        SendClientMessage(playerid, green, string2);
}
#endif
thx i make string 0 - 7

but one waring

pawn Код:
C:\Users\Kodu\Desktop\Unity Stuntages 0.3c\filterscripts\ladmin4v2.pwn(4415) : warning 209: function "dcmd_stats" should return a value
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
wich value i should add ?
Reply


Messages In This Thread
[HELP] L Admin - by Mr.Jvxmc - 30.12.2010, 19:49
Re: [HELP] L Admin - by blackwave - 30.12.2010, 19:53
Re: [HELP] L Admin - by Mr.Jvxmc - 30.12.2010, 20:00
Re: [HELP] L Admin - by blackwave - 30.12.2010, 20:09
Re: [HELP] L Admin - by FreshDoubleX - 30.12.2010, 20:10
Re: [HELP] L Admin - by Mr.Jvxmc - 30.12.2010, 20:17
Re: [HELP] L Admin - by FreshDoubleX - 30.12.2010, 20:18
Re: [HELP] L Admin - by blackwave - 30.12.2010, 20:20
Re: [HELP] L Admin - by FreshDoubleX - 30.12.2010, 20:23
Re: [HELP] L Admin - by Mr.Jvxmc - 30.12.2010, 20:31

Forum Jump:


Users browsing this thread: 3 Guest(s)