'SERVER: Unkown command.'
#1

Simple... How can I edit this line? I'll give a rep to whoever can help me, please? :3
Reply
#2

find "return 0;" in OnPlayerCommandText the final
replace,
pawn Код:
SendClientMessage(playerid, -1,"INVALID CMD");
Reply
#3

Here it is
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, -1,"INVALID COMMAND");
}
Reply
#4

So, I go through and replace all 'return 0;' with what you've given me? SendClientMessage(playerid, -1,"INVALID COMMAND"); ?
Reply
#5

Quote:
Originally Posted by Syntax
Посмотреть сообщение
So, I go through and replace all 'return 0;' with what you've given me? SendClientMessage(playerid, -1,"INVALID COMMAND"); ?
Yes it must be like this
pawn Код:
return SendClientMessage(playerid, -1,"INVALID COMMAND");
Reply
#6

Under OnPlayerCommandText find the very LAST "return 0" and replace it with:

pawn Код:
return SendClientMessage(playerid, color, "Your Message Here");
Reply
#7

Thank you SpiritEvil. I appreciate your time and help, honestly!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)