Server Unknown Command
#1

Hello,
I stopped coding 5days ago, and today I returned, and I'm facing a problem with my gamemode...
Any command I type it returns "Server Unknown Command".
I've removed every filterscripts to make sure it wasn't any conflit with it, and I've also removed all commands lefting just one to test, and the result is the same...
Any suggestions about what could be this strange bug?

Here's my code:

PHP код:
stock split(const strsrc[], strdest[][], delimiter){
    new 
piliaNumlen;
    while(
pi<=strlen(strsrc)){
        if(
strsrc[pi]==delimiter || pi==strlen(strsrc)){
            
len=strmid(strdest[aNum], strsrclipi128);
            
strdest[aNum][len]=0;
            
li=pi+1;
            
aNum++;
        }
        
pi++;
    }
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[]){
   new 
cmd[100][128];
   
split(cmdtextcmd' ');
   if(
strcmp(cmd[0], "/test"true)==0){
      return 
SendClientMessage(playerid0xFBFF00FF"test");
   }
   return 
SendClientMessage(playerid0xFBFF00FF"invalid command");

Reply


Messages In This Thread
Server Unknown Command - by mati233 - 01.06.2012, 14:56
Re: Server Unknown Command - by Sandiel - 01.06.2012, 14:59
Re: Server Unknown Command - by mati233 - 01.06.2012, 15:01
Re: Server Unknown Command - by SkL_MD - 01.06.2012, 15:07
Re: Server Unknown Command - by mati233 - 01.06.2012, 15:09
Re: Server Unknown Command - by Saad_ - 01.06.2012, 15:10
Re: Server Unknown Command - by JaTochNietDan - 01.06.2012, 15:10
Re: Server Unknown Command - by mati233 - 01.06.2012, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)