Command (Unknow Command)
#1

Hey, this is my command for health...it s show the message and the command is working but i also shows in chat SERVER:unknow command

Код:
if(strcmp("/zivot", cmdtext) == 0)
    {
		SetPlayerHealth(playerid,100); // Nastavi zivot na 100
		SendClientMessage(playerid, 0x800080FF, "[ Server ] Zivot nastaveny na 100HP.");
    }
Reply
#2

Quote:
Originally Posted by lsreskjn
Посмотреть сообщение
Hey, this is my command for health...it s show the message and the command is working but i also shows in chat SERVER:unknow command

Код:
if(strcmp("/zivot", cmdtext) == 0)
    {
		SetPlayerHealth(playerid,100); // Nastavi zivot na 100
		SendClientMessage(playerid, 0x800080FF, "[ Server ] Zivot nastaveny na 100HP.");
    }
Try this
Код:
if(strcmp("/zivot", cmdtext) == 0)
    {
		SetPlayerHealth(playerid,100); // Nastavi zivot na 100
		SendClientMessage(playerid, 0x800080FF, "[ Server ] Zivot nastaveny na 100HP.");
                return 1;
    }
Reply
#3

You haven't returned the command so it gives the SERVER: Unknown Command.

pawn Код:
if(strcmp("/zivot", cmdtext) == 0)
{
     SetPlayerHealth(playerid,100); // Nastavi zivot na 100
     SendClientMessage(playerid, 0x800080FF, "[ Server ] Zivot nastaveny na 100HP.");
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)