01.06.2012, 14:56
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:
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 pi, li, aNum, len;
while(pi<=strlen(strsrc)){
if(strsrc[pi]==delimiter || pi==strlen(strsrc)){
len=strmid(strdest[aNum], strsrc, li, pi, 128);
strdest[aNum][len]=0;
li=pi+1;
aNum++;
}
pi++;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]){
new cmd[100][128];
split(cmdtext, cmd, ' ');
if(strcmp(cmd[0], "/test", true)==0){
return SendClientMessage(playerid, 0xFBFF00FF, "test");
}
return SendClientMessage(playerid, 0xFBFF00FF, "invalid command");
}