03.09.2016, 19:42
Hello, I have a problem with the command /profile when displaying a dialog does not show the whole string, you do not know where it might be wrong?
Код:
COMMAND:profile(playerid,params[]) { new id, str[1000], str1[1000], name[MAX_PLAYER_NAME]; GetPlayerName(id,name,MAX_PLAYER_NAME); if(sscanf(params, "u",id)) { return SendClientMessage(playerid, 0xFF0000AA, "SYNTAXE:/profile [PlayerID/Name]"); } format(str1, sizeof(str1),"BustAimDialog profil hrбče: %s(%d): Kompletnн staty vљech zbranн hrбče.", name, id); new allshots,hitshots,max_cont_shots,out_of_range_warns,random_aim_warns,proaim_tele_warns; BustAim::GetPlayerProfile(id,allshots,hitshots,max_cont_shots,out_of_range_warns,random_aim_warns,proaim_tele_warns); format(str, sizeof(str),"Fired: %d \nHits: %d \nHitPercentage: %.2f \nMaxContinousShots: %d \nBullets OutOfRangeWarns: %d \nAimWarns: %d \nTeleportWarns: %d",allshots,hitshots,((hitshots*100.0)/allshots),max_cont_shots,out_of_range_warns,random_aim_warns,proaim_tele_warns); ShowPlayerDialog(playerid, DIALOG_BUSTPROFILE_PLAYER, DIALOG_STYLE_MSGBOX, str1, str, "Close", ""); return 1; }