Quote:
Originally Posted by TheNooB
Weapon Name, Weapon ID, Weapon Ammo
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/silahal", cmdtext, true, 10) == 0) { new weaponid = GetPlayerWeapon(playerid); new WeaponName[128]; new string[128]; GetWeaponName(weaponid, WeaponName, sizeof WeaponName);
format(string, sizeof string, "Current Weapon: %s(Weapon ID: %d) Ammo: %d", WeaponName, GetPlayerWeapon(playerid), GetPlayerAmmo(playerid)); SendClientMessage(playerid,0xF60000AA, string); return 1; } return 0; }
|
Why is WeaponName such a big array?