27.12.2010, 02:12
Quote:
I have two commands, one is a chat command and the other is just a normal command (Not chat).
The chat command is /t and the command is /top When i type /t and my message, Example, [TEAM-CHAT] PlayerName: test it works but when i do the command /top this happens, [TEAM-CHAT] PlayerName: op It basically just thinks when i type /top the first T is refering to the chat command. and it does /t and it types out "op" Can you please help me out! Thanks! The commands as usual: pawn Код:
pawn Код:
|
ZCMD Example...
pawn Код:
command(top,playerid,params[])
{
SendClientMessage(playerid,COLOR_LIGHTRED,"You have placed it on the top.");
}
pawn Код:
if (strcmp("/top", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, "You have placed it on the top.");
return 1;
}
pawn Код:
if (strcmp("/top", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR, "You have placed it on the top.");
return 1;
}