expected token
#5

from this line
Код:
case 4:SellWeapon(playerid, 30, 34, 30);
Your "SellWeapon" function requires 4 parameters.

Код:
Sellweapon(playerid, parameter 2, parameter 3, parameter 4)
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
Reply


Messages In This Thread
expected token - by ivndosos - 11.02.2018, 13:46
Re: expected token - by Mugala - 11.02.2018, 14:17
Re: expected token - by ivndosos - 11.02.2018, 14:42
Re: expected token - by Mugala - 11.02.2018, 14:46
Re: expected token - by XxBaDxBoYxX - 11.02.2018, 14:49
Re: expected token - by ivndosos - 11.02.2018, 15:05
Re: expected token - by Mugala - 11.02.2018, 15:12
Re: expected token - by Dayrion - 11.02.2018, 15:23
Re: expected token - by Mugala - 11.02.2018, 15:25
Re: expected token - by ivndosos - 11.02.2018, 15:42

Forum Jump:


Users browsing this thread: 3 Guest(s)