Unknown Command
#1

hAi i am getting Unknown Command after typing the code, it do all what i wanted it to do, but it show "Unknown command" at last. I use YCMD

code:
pawn Код:
YCMD:kill(playerid, params[], help)
{
    new s[500];
    new oscore;
    oscore = GetPlayerScore(playerid);
    SetPlayerScore(playerid,oscore -1);
    SetPlayerHealth(playerid, -1);
    format(s, sizeof(s),"{C0C0C0}[SERVER] {FFFFFF}You have commited suscide using /kill. You will first be able to spawn in next round!");
    SendClientMessage(playerid, -1, s);
    return 1;
}
Reply
#2

y did u format a string if ur not using the real purpose of it best u did

SendClientMessage(playerid, -1, {C0C0C0}[SERVER] {FFFFFF}You have commited suscide using /kill. You will first be able to spawn in next round!");
Reply
#3

Because its the half of the xommand that message does also appear on my clearchat cmd any ideas?
Reply
#4

pawn Код:
new s[500];
reduce it lol to 200...
O.o
Reply
#5

Yea, but it wont affect ehy it says:Unknown Command when i have entered the cmd and after it did what i progeammed it to
Reply
#6

hmm instead of
pawn Код:
new oscore;
    oscore = GetPlayerScore(playerid);

Use:

pawn Код:
new oscore = GetPlayerScore(playerid);
may help
Reply
#7

Ill just step back to zCmd, as i am professional to use that xD Anyway thanZ for trying :3
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)