SA-MP Forums Archive
Command processor. - 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: Command processor. (/showthread.php?tid=638099)



Command processor. - Bussyman - 26.07.2017

https://sampforum.blast.hk/showthread.php?tid=608474

Код:
cmd:help(playerid, params[]) // also possible to use CMD and COMMAND 
{ 
    if( MONEY[ playerid ] < 500 )
{
 return 5;
}
    return 1; 
}
Can i return 5;? i mean any number not only 1?


Re: Command processor. - Vince - 26.07.2017

Because ... ?


Re: Command processor. - Bussyman - 26.07.2017

because

Код:
cmd:help(playerid, params[]) // also possible to use CMD and COMMAND 
{ 
    if( MONEY[ playerid ] < 500 )
{
 return SendClientMessage(playerid...);
}
    return 1; 
}
so sendclientmessage return can 1 or 0, of course player can't be not connecting when writing command, but still i just care it's matter what return you write it's anything do to command or that don't care.


Re: Command processor. - Kane - 26.07.2017

What're you saying?


Re: Command processor. - Sanady - 26.07.2017

If I understand you correctly, yes, you can return what ever value you want. But depends what you want to create...