[SHOEBILL] Need help with command parameters - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [SHOEBILL] Need help with command parameters (
/showthread.php?tid=616049)
[SHOEBILL] Need help with command parameters -
MrViolence101 - 30.08.2016
Hello,
I am using the following code :
Код:
@Command
public boolean pm(Player player, Player target, String message)
{
if (target == null)
{
return true;
}
player.sendMessage(Color.ORANGE, "PM to [" + target.getId() + "]" + target.getName() + " : " + message);
target.sendMessage(Color.ORANGERED, "PM from [" + player.getId() + "]" + player.getName() + " : " + message);
return true;
}
but the problem is that it gives me a usage error when typing a sentence as the string parameter. I know what the problem is but I have no idea how to fix it in shoebill.
Is there a way to fetch a sentence as a single parameter.
Thanks.
Re: [SHOEBILL] Need help with command parameters -
oMa37 - 30.08.2016
I don't really know why you use Shoebill when you are not good in it ...
Re: [SHOEBILL] Need help with command parameters -
MrViolence101 - 31.08.2016
are you stupid?
There is not much documentation for shoebill and the parameter situation has nothing to do with normal Java language. I was just asking if maybe some knew how to do it.