[HELP] L Admin
#8

Rofl, seem you're "thoughtless"

Код:
error 017: undefined symbol "foramt"
Put format | instead "foramt"...

Код:
error 001: expected token: "#endif", but found "-end of file-"
Try this underneath
pawn Код:
#if defined USE_STATS
dcmd_stats(playerid,params[]) {
    new string[128], string2[128], string3[128], string4[128], string5[128], string6[128], string7[128], pDeaths, player1, h, m, s;
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);
   
    if(IsPlayerConnected(player1)) {
        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));
        format (string2, sizeof(string2), "> Kills: %d", PlayerInfo[player1][Kills]);
        format (string3, sizeof(string3), "> Deaths: %d", PlayerInfo[player1][Deaths]);
        format (string4, sizeof(string4), "> Ratio: %0.2f", Float:PlayerInfo[player1][Kills]/Float:pDeaths);
        format (string5, sizeof(string5), "> Money: %d", GetPlayerMoney(player1));
        format (string6, sizeof(string6), "> Score: %d", GetPlayerScore(player1));
        foramt (string7, sizeof(string7), "> Time: %d hours %d minutes %d seconds", h, m, s);
        return SendClientMessage(playerid, green, string);
        return SendClientMessage(playerid, green, string2);
        return SendClientMessage(playerid, green, string3);
        return SendClientMessage(playerid, green, string4);
        return SendClientMessage(playerid, green, string5);
        return SendClientMessage(playerid, green, string6);
        return SendClientMessage(playerid, green, string7);
    } else return SendClientMessage(playerid, red, "Player Not Connected!");
    #endif
}
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: 1 Guest(s)