SERVER: Unknown command.
#4

Quote:
Originally Posted by belhot1992
Посмотреть сообщение
The samp public function should be called OnPlayerCommandText not OnPlayerText.
I believe that's why your commands are not being recognized.
I am talking about this
pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
But I found a copy of the gamemode and paste the cmds there and work
Reply


Messages In This Thread
SERVER: Unknown command. - by Kostas' - 17.10.2011, 08:12
Re: SERVER: Unknown command. - by Kostas' - 17.10.2011, 08:42
Re: SERVER: Unknown command. - by Buzzbomb - 17.10.2011, 09:10
Re: SERVER: Unknown command. - by Kostas' - 17.10.2011, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)