[Help] Unknown Command -.-"
#1

/////
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if (!strcmp("/kill", cmdtext, true) == 0)
   {
        SetPlayerHealth(playerid, 0);
        return true;
   }
   return false;
}
Reply
#3

Still doesn't work...
Reply
#4

Are you use some other command processors something like: zcmd, ycmd, dcmd?
Reply
#5

Try this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
You're using zcmd?
Reply
#6

/////////
Reply
#7

Quote:
Originally Posted by mr.sunny
Посмотреть сообщение
Try this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
You're using zcmd?
why
pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
take a look on your code dude


Do you use some FS?

My suggestion is next:

Download zcmd here: http://solidfiles.com/d/879d1213462f...6d464e90c8cf9/

and then put that file in your pawno/includes folder and on top of mode under this code
pawn Код:
#include <a_samp>
put
pawn Код:
#include <zcmd>
and then DELETE THIS

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
and put this

pawn Код:
COMMAND:kill(playerid,params[])
{
        #pragma unused params
        SetPlayerHealth(playerid, 0);
        return true;
}
Reply
#8

I don't use FS's
Reply
#9

look my message i edit, please read and follow instruction
Reply
#10

Quote:
Originally Posted by DarkPower
Посмотреть сообщение
look my message i edit, please read and follow instruction
Thanks a lot.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)