03.07.2009, 03:04
Quote:
Originally Posted by yezizhu
public OnPlayerCommandText(playerid,cmdtext[]){
if(!strcmp("/b ",cmdtext,false,3)){ if(cmdtext[3]){ OnPlayerText(playerid,cmdtext[3]); }else SendClientMessage(playerid,COLOR_YOUWANT,"Usage:/b [text]"); } return true; } return false; } |
Код:
public OnPlayerCommandText(playerid,cmdtext[]){ if(!strcmp("/b ",cmdtext,false,3)){ if(cmdtext[3]){ OnPlayerText(playerid,cmdtext[3]); }else SendClientMessage(playerid,COLOR_YOUWANT,"Usage:/b [text]"); } return true; } return false; }
add ] this after '[code' and [ before '/code'