Unknown command even if it's right
#1

Hello, I am bored out of my mind so I started making alot of X-TREMELY useless commands!

if(strcmp(cmdtext, "/awesome", true) == 0)
{
SendClientMessage(playerid, COLOR_RED,"Yes You are Awesome!!!! xDxD");
}

It shows the respond, but beneath it, it says Unknown command blablabla

Why?
Reply
#2

place
Код:
return 1;
at the end of every command.
Reply
#3

ahh ofc thats what I did wrong. I did

if(strcmp(cmdtext, "/awesome", true) == 0)
{
SendClientMessage(playerid, COLOR_RED,"Yes You are Awesome!!!! xDxD");
}
return 1;
}
Reply
#4

Quote:
Originally Posted by ColdIce
Посмотреть сообщение
ahh ofc thats what I did wrong. I did

if(strcmp(cmdtext, "/awesome", true) == 0)
{
SendClientMessage(playerid, COLOR_RED,"Yes You are Awesome!!!! xDxD");
}
return 1;
}
Wrong.

pawn Код:
if(strcmp(cmdtext, "/awesome", true) == 0)
{
    SendClientMessage(playerid, COLOR_RED,"Yes You are Awesome!!!! xDxD");
    return 1;
}
NEVER do more } then you have { .
Think:
I open with {
I close with }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)