SA-MP Forums Archive
Problem with script - 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)
+--- Thread: Problem with script (/showthread.php?tid=348753)



Problem with script - lewismichaelbbc - 06.06.2012

Okay, I have an ownership(zcmd) filterscript which compiles perfectly and a roleplay(strcmp) script which also compiles perfectly. I then integrated the ownership(zcmd) filterscript into the roleplay(strcmp) script, this also compiles perfectly.

However, when I go on the server, all of the commands say 'Unknown command'

Does anyone know a solution for this?


Re: Problem with script - Jonny5 - 06.06.2012

yes convert all to zcmd
and delete the OnPlayerCommandText callback from your mode


Re: Problem with script - MadeMan - 06.06.2012

Change this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
to

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(success)
    {
        return 1;
    }