when a cmd is typed wrong?
#1

hey

i had a idea, prollys already done

but when a player types a invalid cmd,

like in the script

return "%s is a Unknown Command!",command);

would that work?

im just getting to know all of this..
Reply
#2

pawn Код:
return "%s is a Unknown Command!",cmdtext[]);
i think this might work out.. (dunno for sure)
Reply
#3

Instead of return 0; put:

pawn Код:
new string[128];
format(string, sizeof(string), "%s is an unknown command.", cmdtext);
return SendClientMessage(playerid, COLOR_RED, string);
Reply
#4

thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)