ZCMD And Strcmp
#2

pawn Код:
//Change:
public OnPlayerCommandText(playerid, cmdtext[])
{
    //...
}

//To:
forward OnPlayerCommandTextEx(playerid, cmdtext[]);
public OnPlayerCommandTextEx(playerid, cmdtext[])
{
    //...
}

public OnPlayerCommandPerformed(playerid, cmdtext[], success)//ZCMD's Callback
{
    if(!success) success = OnPlayerCommandTextEx(playerid,cmdtext);// << Add it.
    return success;
}
It is recommended that you update your strcmp to zcmd/ycmd.
Reply


Messages In This Thread
ZCMD And Strcmp - by kepa333 - 11.07.2012, 01:58
Re: ZCMD And Strcmp - by Larceny - 11.07.2012, 02:14
Re: ZCMD And Strcmp - by kepa333 - 11.07.2012, 12:25
Re: ZCMD And Strcmp - by Dan. - 11.07.2012, 19:41
Re: ZCMD And Strcmp - by Larceny - 11.07.2012, 20:17
Re: ZCMD And Strcmp - by DarrenReeder - 11.07.2012, 21:46
Re: ZCMD And Strcmp - by kepa333 - 12.07.2012, 23:41

Forum Jump:


Users browsing this thread: 2 Guest(s)