Sub-Command (playerid or range)?
#5

Quote:
Originally Posted by SickAttack
View Post
Not quite conventional since people don't usually use decimals/floating point numbers. But a pretty clever solution.

You should make it like /cmd -r 5 5000 and /cmd -p 5 5000, -r for range, -p for player. But just a small detail I'd consider.
I realized that and it's quite tricky because even an integer is a valid float (as parameter) and a float is a valid player's name (10.5 for example). Without a 3rd parameter, it will be very difficult to detect what exactly the value is supposed to be.
Reply


Messages In This Thread
[SOLVED] Sub-Command (playerid or range)? - by RayBiH - 18.12.2016, 18:35
Re: Sub-Command (playerid or range)? - by Konstantinos - 18.12.2016, 18:40
Re: Sub-Command (playerid or range)? - by RayBiH - 18.12.2016, 18:59
Re: Sub-Command (playerid or range)? - by SickAttack - 18.12.2016, 19:09
Re: Sub-Command (playerid or range)? - by Konstantinos - 18.12.2016, 19:15
Re: Sub-Command (playerid or range)? - by Duco - 19.12.2016, 09:27
Re: Sub-Command (playerid or range)? - by RayBiH - 19.12.2016, 10:17
Re: Sub-Command (playerid or range)? - by OneDay - 19.12.2016, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)