25.07.2010, 18:50
(
Последний раз редактировалось Tekto; 25.07.2010 в 19:02.
)
Код:
C:\----------(317) : error 001: expected token: ";", but found "stock" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
stock strtok(const string[], &index,seperator=' ')
Код:
stock strtok(const string[], &index,seperator=' ') { new length = strlen(string); new offset = index; new result[128]; while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; if ((index < length) && (string[index] == seperator)) { index++; } return result; }