21.11.2012, 07:02
Quote:
|
The array funcname[MAX_FUNC_NAME] is getting indexed by the size of the command, so if the command is bigger than the define MAX_FUNC_NAME, it gets a runtime error and the function stops.
You could add a check to prevent the error occuring. Example: pawn Код:
|
pawn Код:
while (cmdtext[++pos] > ' ')
{
if(pos > MAX_FUNC_NAME)
break;
else
funcname[pos-1] = tolower(cmdtext[pos]);
}


