SA-MP Forums Archive
ZCMD. - 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: ZCMD. (/showthread.php?tid=177610)



ZCMD. - Gh0sT_ - 18.09.2010

hello, im have a small problem.. when i use cmd like /LALALLAA server means: SERVER: Unknown command, but i want just like this: GangWars: la la la... ( USING ZCMD, NOT STRCMP )


Re: ZCMD. - DRIFT_HUNTER - 18.09.2010

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    return  SendClientMessage(playerid, 0xFF0000FF, "Wrong command?USE /HELP");
}



Re: ZCMD. - Gh0sT_ - 18.09.2010

Ok, thanks. But now another prob? When i type good command( like /ban ) it means that CMD doesnt created, like this:
Message: /ban [Name] [Reason]
and dialog ( return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Рi komanda nerasta!\nNaudokite komandа „/pagalba“!", "Gerai", "Uюdaryti"); )
when i add all cmds, at OnPlayerCommandPerformed callback, i get errors on all COMMAND:NAME ( like undefined symbol cmd:ban. )
when i re-add it onplayercommandtext it works perfectly, just that 'bug' with dialog / message


Re: ZCMD. - nemesis- - 18.09.2010

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        return  SendClientMessage(playerid, 0xFF0000FF, "Wrong command? Use /HELP");
    }
    return 1;
}



Re: ZCMD. - Gh0sT_ - 19.09.2010

Thanks ( Lock )