Unknown command message do not work
#1

public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}RoBoTzel: Unknow command type /n(ewbie) for help.");
}
else
{
printf("Player %s %s", PlayerData[playerid][Name], cmdtext);
return 1;
}
return 1;
}

he its work but not corectly comand /help exist i type /help and he say me that message
help me? how to resolve this bug
Reply
#2

Just use the following
Quote:

public OnPlayerCommandText(playerid,cmdtext[])
{
//all commands should be in here!!!
return sendclientmessage(playerid, -1, "Your UNKNOWN Message Here");
}

Reply
#3

great thanks that it work... thx man
Reply
#4

Quote:
Originally Posted by MauriceTank
Посмотреть сообщение
great thanks that it work... thx man
No Problem!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)