Getting rid of Get_User_attack
Im getting native run time errors on damage function
Code:
and i want to know what to add/remove/edit to get rid of this error. Code:
Invalid player id 0 |
You need to check if id is a valid player id before passing it into get_user_attacker().
|
Can you give me the check function for the valid id player
|
Code:
Those are your two checks, to see if they are valid players or not. |
I don't recall what happens when you pass those two functions a value of 0 as the player id. To be safe, I'd check to make sure id > 0 before calling anything else. If it's 0, it's not a player.
|
Function Plz. :o
|
When you pass 0 into the two functions all it will return is 0 or false, since it's not a player and all. The two functions won't explode :wink: .
|
It's not a function. It's a comparison.
Code:
|
Gorlag, if he's calling get_user_attacker, a check on is_user_alive isn't necessary is it? Perhaps the attacker killed the player.
|
Quote:
|
| All times are GMT -4. The time now is 00:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.