21/03/2020, 07:16 PM
(Última modificación: 21/03/2020, 07:16 PM por JhoNNyNeuTroN. Edited 1 time in total.)
Estaba intentando "ocultar" el say al obtener el arma, pero me sale esto.
Resulta que es en algunas armas del pack de días, otras pues le pongo eso y ningun problema.
Funcion
Resulta que es en algunas armas del pack de días, otras pues le pongo eso y ningun problema.
Código PHP:
Warning: Function "Get_Plasma" should return a value on line 170
Warning: Function "Get_Plasma" should return a value on line 185
Error: Function uses both "return" and "return <value>" on line 190
Funcion
Código PHP:
public Get_Plasma(id)
{
if(!is_user_alive(id))
return
Set_BitVar(g_Had_Plasma, id) //linea 170
fm_give_item(id, weapon_plasma)
// Set Weapon
engclient_cmd(id, weapon_plasma)
set_pev(id, pev_viewmodel2, V_MODEL)
set_pev(id, pev_weaponmodel2, P_MODEL)
set_pdata_string(id, (492) * 4, WEAPON_ANIMEXT, -1 , 20)
// Set Weapon Base
static Ent; Ent = fm_get_user_weapon_entity(id, CSW_PLASMA)
if(!pev_valid(Ent)) return
cs_set_weapon_ammo(Ent, CLIP) //linea 185
cs_set_user_bpammo(id, CSW_PLASMA, BPAMMO)
Update_AmmoHud(id, CSW_PLASMA, CLIP, BPAMMO)
return PLUGIN_HANDLED //linea 190
}