22.12.2015, 14:05
How can i use strcat here?
PHP код:
format(string, sizeof(string),"{FF0000}General Statistics\n\n{00FFFF}Player Name:{00FF00} %s\n{00FFFF}Score:{00FF00} %i\n{00FFFF}Money :{00FF00} %i\n{00FFFF}Skin:{00FF00} %i\n{00FFFF}Wanted level:{00FF00} %i\n{00FFFF}Ping:{00FF00} %i\n\n{FF0000}Record Statistics\n\n{00FFFF}Kills:{00FF00} %i\n{00FFFF}Deaths:{00FF00} %i\n{00FFFF}K/D ratio:{00FF00} %i\n{00FFFF}Players robbed:{00FF00} %i\n{00FFFF}Stores robbed:{00FF00} %i\n{00FFFF}Players Raped:{00FF00} %i" ,name,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerSkin(playerid),GetPlayerWantedLevel(playerid),GetPlayerPing(playerid),playerData[playerid][playerKills],playerData[playerid][playerDeaths],ratio,playerData[playerid][playerRobberies],playerData[playerid][streetRobberies],playerData[playerid][streetRapes]);
ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,"{FFFF00} Statistics",string,"Close", "");