12.06.2017, 16:08
"dude" i'm a girl but that's ok, i try to make your functions work. Let me see.
1. So u get the health with this: GetHealth( i, hp );. Did u defined somewhere that hp ?
2. I think if u use it like this may it will work:
3. And this i think it will work too:
Try it and let me know if it works.
1. So u get the health with this: GetHealth( i, hp );. Did u defined somewhere that hp ?
PHP Code:
new Float:hp;
GetHealth( i, hp );
PHP Code:
GetHealth( playerid, health ) return pInfo[ playerid ][ pHealth ] = health;
PHP Code:
GiveHealth( playerid, health ) return pInfo[ playerid ][ pHealth ] += health;