Need assistance with Strcat
#5

here you go
pawn Код:
CMD:stats(playerid, params[])
{
    new string[1024], holder[128];
    format(string, sizeof(string), ""COL_LIGHTBLUE"GENERAL INFORMATION:\n"COL_WHITE"Character Level: %d\nExperience: %d\nCash: %d\nBank: %d\n",GetPlayerScore(playerid), PlayerInfo[playerid][pExp], GetPlayerMoney(playerid), PlayerInfo[playerid][pBank]);
    strcat(holder, string, sizeof(holder));
    format(string, sizeof(string), ""COL_WHITE"Kills: %d\nDeaths: %d\nMaster Keys: %d\n\n"COL_LIGHTBLUE"GAME STATICS:\n"COL_WHITE"Caught Fishes: %d\nCut Trees: %d\n",PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pMkey], PlayerInfo[playerid][pFishtotal], PlayerInfo[playerid][pLogstotal]);
    strcat(holder, string, sizeof(holder));
    ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX,"Personal Statistics", holder,"Close","");
    return 1;
}
Reply


Messages In This Thread
Need assistance with Strcat - by Verth - 22.06.2014, 09:49
Re : Need assistance with Strcat - by S4t3K - 22.06.2014, 09:54
Re: Re : Need assistance with Strcat - by Verth - 22.06.2014, 10:01
Re : Need assistance with Strcat - by S4t3K - 22.06.2014, 10:03
Re: Need assistance with Strcat - by ReD_HunTeR - 22.06.2014, 10:08
Re: Need assistance with Strcat - by Verth - 22.06.2014, 10:18
Re : Need assistance with Strcat - by S4t3K - 22.06.2014, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)