SA-MP Forums Archive
dialog, string in format - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dialog, string in format (/showthread.php?tid=616348)



dialog, string in format - FinStar - 03.09.2016

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



Re: dialog, string in format - Shinja - 03.09.2016

Edit: @DarkSkull ^


Re: dialog, string in format - DarkSkull - 03.09.2016

Quote:

Originally Posted by Kye on wiki.sa-mp.com/wiki/Talk:Limits
<Kye> 2048 characters but that will probably be increased
<Kye> the input box is 128
<Kye> and the dialog caption is 64

There