SA-MP Forums Archive
Unknown command not printing - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Unknown command not printing (/showthread.php?tid=169585)



Unknown command not printing - Hal - 20.08.2010

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.


Re: Unknown command not printing - Sky4D - 20.08.2010

Yeah, it's a seperate public.

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



Re: Unknown command not printing - BP13 - 20.08.2010

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


Re: Unknown command not printing - Sky4D - 20.08.2010

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.


Re: Unknown command not printing - Hal - 20.08.2010

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.