16.05.2014, 16:41
Hello, Try this
PHP код:
dcmd_stats(playerid,params[])
{
#pragma unused params
new statz[1024],coordsstring[512];
format(statz, sizeof(statz),"Score: %d\nBank: %d\nMoney: $%d\nAdmin: %d\nArmy: %d\nSWAT: %d\n",GetPlayerScore[playerid], BankCash[playerid], GetPlayerMoney[playerid], AdminLevel[playerid], CanUseArmy[playerid], CanUseSWAT[playerid]);
format(coordsstring, sizeof(coordsstring), "» Regular: %d\nTerrorLVL: %d\nRobbberLVL: %d\nC4: %d\nRope: %d", IsRegularPlayer[playerid], TerroristSkill[playerid], RobSkill[playerid], HasC4[playerid], HasRope[playerid]);
strcat(statz,coordsstring);
ShowPlayerDialog(playerid,644,DIALOG_STYLE_MSGBOX,"Stats",statz,"Close","");
return 1;
}