GetPlayerWeaponData
#9

Quote:
Originally Posted by NealPeteros
Посмотреть сообщение
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], weapon0sizeof(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(playerid55DIALOG_STYLE_MSGBOX"Weapon Info"string"Okay"""); //showing the dialogue with that string 
//==////
was that more simple? what do you not understand exactly??
Reply


Messages In This Thread
GetPlayerWeaponData - by NealPeteros - 16.12.2017, 07:50
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 08:21
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 08:28
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 08:33
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 08:35
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 08:54
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 09:01
Re: GetPlayerWeaponData - by NealPeteros - 16.12.2017, 09:14
Re: GetPlayerWeaponData - by RogueDrifter - 16.12.2017, 09:19
Re: GetPlayerWeaponData - by Kane - 16.12.2017, 09:26

Forum Jump:


Users browsing this thread: 2 Guest(s)