Hi,
I would like to make a function like get_user_weapon.
For example get_user_hp(id, ap) , no matter if ap is optional or not.
Code:
// in whatever function in the plugin
new ap, hp = get_user_hp(id, ap)
get_user_hp(id, ap)
{
// suppose the player has 100HP, 75HP
// how can it return hp and also apply 75 to the var ap ?
}
Any other way to return 2 values will be fine.
-edit-
I'm about to try somthing like :
Code:
get_user_hp(id, & ap)
{
// suppose the player has 100HP, 75HP
// how can it return hp and also apply 75 to the var ap ?
ap = 75
return 100
}