cmd problem [+REP]
#8

Quote:
Originally Posted by Boot
Посмотреть сообщение
Try using this callback:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) return GameTextForPlayer(playerid, "~g~Unknown command", 3000, 4);
    return 1;
}
Quote:
Originally Posted by Boot
Посмотреть сообщение
Ah sorry, just put return 0; on OnPlayerText callback.
None of those has any remote relation to his problem, returning 0 in OnPlayerText cancels the player's text message if he writes something in the chat that doesn't contain /[text].
And the only way OnPlayerCommandPerformed would help if he set it up like this:
pawn Код:
if(success) return 0; // Or return a msg, whatever
Reply


Messages In This Thread
cmd problem [+REP] - by simo0000 - 21.02.2015, 17:14
Re : cmd problem [+REP] - by simo0000 - 21.02.2015, 17:36
Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:21
Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:32
Re: Re : Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:36
Re : Re: Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:39
Re: Re : Re: Re : Re: cmd problem [+REP] - by Boot - 21.02.2015, 18:42
Re: Re : Re: cmd problem [+REP] - by CalvinC - 21.02.2015, 18:46
Re : Re: Re : Re: cmd problem [+REP] - by simo0000 - 21.02.2015, 18:51
Re: cmd problem [+REP] - by AndySedeyn - 21.02.2015, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)