dialog, string in format
#1

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;
}
Reply


Messages In This Thread
dialog, string in format - by FinStar - 03.09.2016, 19:42
Re: dialog, string in format - by Shinja - 03.09.2016, 20:03
Re: dialog, string in format - by DarkSkull - 03.09.2016, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)