Arkshine is wrong. Unlike arrays, simple cells are passed by value, so you have to explicitly pass them by reference.
Code:
getHPAndAP(user, &hp, &ap)
{
hp = get_user_health(user);
ap = get_user_armor(user);
}
mainFunction(id)
{
new hp, ap;
getHPAndAP(id, hp, ap);
//...
}
__________________