14.05.2014, 02:38
(
Последний раз редактировалось SickAttack; 27.12.2015 в 03:29.
)
Wrong callback and just a misunderstanding, sorry.
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, COLOR_WHITE, "That {00FF00}command{FFFFFF} doesn't exist. Use /help or /newb to see the commands or seek a help.");
return 1;
}
Why you want a "%s" you can just simply send a "wrong command lol" ? btw, here's my code in my server..
pawn Код:
|
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(strlen(cmdtext) > 31)
{
// custom message
return 0;
}
return 1;
}