[DIALOG](ZCMD)Help With Dialogs false all time worked
#8

Quote:
Originally Posted by donhu789
Посмотреть сообщение
-_-


PHP код:
C:\Documents and Settings\PhongLan\Desktop\Samp CS\gamemodes\codww.pwn(14129) : error 017undefined symbol "_str"
C:\Documents and Settings\PhongLan\Desktop\Samp CS\gamemodes\codww.pwn(14129) : error 017undefined symbol "_str"
C:\Documents and Settings\PhongLan\Desktop\Samp CS\gamemodes\codww.pwn(14129) : error 029invalid expressionassumed zero
C
:\Documents and Settings\PhongLan\Desktop\Samp CS\gamemodes\codww.pwn(14129) : fatal error 107too many error messages on one line 

This Code When I compile i'm Using COD gamemode Can Anyone help My do with it ?? i doing zcmd CMD:
Code you can edit:


Код:
CMD:stats(playerid,params[]) {
    new pDeaths, player1, h, m, s,playername[MAX_PLAYER_NAME];
    if(isnull(params)) player1 = playerid;
    else player1 = strval(params);

    if(IsPlayerConnected(player1)) {
        TotalGameTime(player1, h, m, s);
        GetPlayerName(player1, playername, sizeof(playername));
        if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
        new coordsstring[256];
	new string2[1024];
        format(string2, sizeof(string2),"| ------ | %s's Status | ------- |\n", PlayerName2(player1));
        format(coordsstring,sizeof(coordsstring,"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f|\n", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring),"Admin Level: %d | Moderator: %s | Rank: %s | Team: %s | Class: %s|\n", PlayerInfo[player1][Level], PlayerInfo[player1][Helper] ? ("Yes") : ("No"), GetRankName(player1), GetTeamName(player1), GetClass(player1));
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring),"TimePlayed: [%d] hrs [%d] mins [%d] secs | Skin[%d] |", h, m, s, GetPlayerSkin(player1));
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring), "_________________________________________________________________________________________");
	strcat(string2,coordsstring);
	ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Stats", string2, "Okay", "");

    } else return SendClientMessage(playerid, red, "Player Not Connected!");
    return 1;
}
Remember make #define DIALOG_STATS number
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)