16.09.2011, 13:06
Quote:
1 Dъvida, eu colocando esse codigo em ZCMD nгo irб bugar os outros que nгo sгo em ZCMD nгo ne?
|
http://forum.sa-mp.com/showpost.php?...34&postcount=9
pawn Код:
//Troque o:
public OnPlayerCommandText(playerid, cmdtext[])
{
//...
}
//Para:
forward OnPlayerCommandTextEx(playerid, cmdtext[]);
public OnPlayerCommandTextEx(playerid, cmdtext[])
{
//...
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)//Callback do ZCMD
{
if(!success) success = OnPlayerCommandTextEx(playerid,cmdtext);
return success;
}