Command processor.
#1

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?
Reply
#2

Because ... ?
Reply
#3

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.
Reply
#4

What're you saying?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)