23.10.2016, 07:32
(
Последний раз редактировалось JhowWatkins; 25.10.2016 в 10:38.
)
Opa, eae galera beleza?, entao o meu sistema que estou fazendo de pentes esta bugando porque se tiver dois pentes dentro da mochila aparece os dois com os mesmos nome... Codigo abaixo e os nomes dos pentes!
@EDIT
PHP код:
NomePente(playerid,weaponid){
static string[200];
switch (weaponid){
case WEAPON_DEAGLE:
{
if(InventarioAmmo[0][playerid] > 0)
{
format(string, sizeof (string), "PT Deagle\t%i Pentes\t%i Balas",InventarioPente[0][playerid],InventarioAmmo[0][playerid]);
}
}
case WEAPON_MP5:
{
if(InventarioAmmo[1][playerid] > 0)
{
format(string, sizeof (string), "PT MP5\t%i Pentes\t%i Balas",InventarioPente[1][playerid],InventarioAmmo[1][playerid]);
}
}
case WEAPON_COLT45:
{
if(InventarioAmmo[2][playerid] > 0)
{
format(string, sizeof (string), "PT COLT45\t%i Pentes\t%i Balas",InventarioPente[2][playerid],InventarioAmmo[2][playerid]);
}
}
case WEAPON_SILENCED:
{
if(InventarioAmmo[3][playerid] > 0)
{
format(string, sizeof (string), "PT SILENCED\t%i Pentes\t%i Balas",InventarioPente[3][playerid],InventarioAmmo[3][playerid]);
}
}
case WEAPON_SHOTGUN:
{
if(InventarioAmmo[4][playerid] > 0)
{
format(string, sizeof (string), "PT SHOTGUN\t%i Pentes\t%i Balas",InventarioPente[4][playerid],InventarioAmmo[4][playerid]);
}
}
case WEAPON_SHOTGSPA:
{
if(InventarioAmmo[5][playerid] > 0)
{
format(string, sizeof (string), "PT CombatShotgun\t%i Pentes\t%i Balas",InventarioPente[5][playerid],InventarioAmmo[5][playerid]);
}
}
case WEAPON_AK47:
{
if(InventarioAmmo[5][playerid] > 0)
{
format(string, sizeof (string), "PT AK47\t%i Pentes\t%i Balas",InventarioPente[5][playerid],InventarioAmmo[5][playerid]);
}
}
case WEAPON_M4:
{
if(InventarioAmmo[7][playerid] > 0)
{
format(string, sizeof (string), "PT M4A1\t%i Pentes\t%i Balas",InventarioPente[7][playerid],InventarioAmmo[7][playerid]);
}
}
case WEAPON_SNIPER:
{
if(InventarioAmmo[8][playerid] > 0)
{
format(string, sizeof (string), "PT SNIPER\t%i Pentes\t%i Balas",InventarioPente[8][playerid],InventarioAmmo[8][playerid]);
}
}
case WEAPON_RIFLE:
{
if(InventarioAmmo[9][playerid] > 0)
{
format(string, sizeof (string), "PT RIFLE\t%i Pentes\t%i Balas",InventarioPente[9][playerid],InventarioAmmo[9][playerid]);
}
}
}
return string;
}