jamsBond
Дебютант
Вообщем такая проблема при компилированьи
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(368) : warning 219: local variable "str1" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(368) : warning 219: local variable "str2" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(427) : warning 219: local variable "str2" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\gamemodes\rls.pwn(41160) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\gamemodes\rls.pwn(41174) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Вот код
с 41159
помогите пожалуйсто
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(368) : warning 219: local variable "str1" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(368) : warning 219: local variable "str2" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\pawno\include\dutils.inc(427) : warning 219: local variable "str2" shadows a variable at a preceding level
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\gamemodes\rls.pwn(41160) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\SLON\Desktop\PAWNO PAWNO PAWNO\gamemodes\rls.pwn(41174) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Вот код
с 41159
PHP:
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
помогите пожалуйсто
Последнее редактирование:
