11.02.2018, 14:49
from this line
Your "SellWeapon" function requires 4 parameters.
In case 5, you are trying to issue it with 2 parameters only.
Using SetPlayerHealth within another function is not a problem since it would execute then return a value
(either 1 for success or 0 for failure)
What do you need to do?
Fix that case and fill it with enough parameters. then try to compile.
That should make your script compile but there's still a possibility for a runtime error
Код:
case 4:SellWeapon(playerid, 30, 34, 30);
Код:
Sellweapon(playerid, parameter 2, parameter 3, parameter 4)
Using SetPlayerHealth within another function is not a problem since it would execute then return a value
(either 1 for success or 0 for failure)
What do you need to do?
Fix that case and fill it with enough parameters. then try to compile.
That should make your script compile but there's still a possibility for a runtime error