Okay, I have a problem. In this code, after the first call to strtok, the variable becomes "developer" when it was originally "developer;developer 0;developer". I would have expected it to become "developer 0;developer" after the first call..
void Con_Execute(char *text)
{
char *pch;
char string[10240];
strcpy(string,text);
if(!strstr(string,";"))
{
Cmd_ExecuteString(string);
return;
}
pch = strtok(string,";");
while(pch)
{
Cmd_ExecuteString(string);
pch = strtok(NULL,";");
}
}