16.12.2017, 09:19
Quote:
I'm sorry, but um...huh? Can you probably say it in words I can understand, please? Kinda spent 10 minutes figuring out what you meant.
|
PHP код:
new name[24],//player name varibale
string[128],//string for the dialogue
weapon0[15],//string for first weapon name
weapon1[15]; //string for second weapon name
GetPlayerName(playerid,name,sizeof(name));//saving the player name in (name)
GetWeaponName(weapon[0], weapon0, sizeof(weapon0));//saving first weapon name in (weapon0)
GetWeaponName(weapon[1], weapon1,sizeof(weapon1));//saving second weapon in (weapon1)
format(string,sizeof(string),"%s has the weapon %s with %d ammmo and a %s with %d ammo",name,weapon0,ammo[0],weapon1,ammo[1]);//formatting the string with the values we got
ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, "Weapon Info", string, "Okay", ""); //showing the dialogue with that string
was that more simple? what do you not understand exactly??