Unknown command not printing
#1

the end of the commands, there is this
pawn Код:
}
                }
            }
            else
            {
                SendClientMessage( playerid, WHITE, "That player is not connected or isn't logged in." );
                return 1;
           }
        }
        SendClientMessage(playerid,DARKGREY, "SERVER: You have Typed An Unknown Command.");
    }
    return 1;
}
BUT, it doesnt show the SERVER: unknown command. I have tried to add another line, but with no avail.

im wondering if i need to have a different public bit for that. i dont know, this has baffled me. I have NO freaking idea how to fix it. Ohh, the script uses ZCMD.
Reply
#2

Yeah, it's a seperate public.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) { SendClientMessage(playerid, sc_White, "COMMAND: Invalid Command."); }
    return 1;
}
Reply
#3

//edit i hate this forums non-ability to warn you that someone posted before you.
Reply
#4

Quote:
Originally Posted by BP13
Посмотреть сообщение
//edit i hate this forums non-ability to warn you that someone posted before you.
Yeah, that's one thing I miss about SMF.
Reply
#5

Quote:
Originally Posted by Sky4D
Посмотреть сообщение
Yeah, that's one thing I miss about SMF.
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    return 1;
}
^^ originally.

Works Perfectly . Thanks So Much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)