Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

error 021,error 047

Статус
В этой теме нельзя размещать новые ответы.

Primes

Новичок
PHP:
C:\DOCUME~1\4A47~1\0016~1\REZONE~1.6\GAMEMO~1\123~1.PWN(46223) : error 021: symbol already defined: "strtok"
C:\DOCUME~1\4A47~1\0016~1\REZONE~1.6\GAMEMO~1\123~1.PWN(46237) : 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.
Доброго времени суток появились две проблемы которые не знаю как решить.
1)первая проблема
PHP:
stock IsPlayerApplyAnimation(playerid, animation[])
{
    if(!GetPlayerAnimationIndex(playerid)) return 0;
    else
    {
        new animlib[32], animname[32];
        GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
        if(!strcmp(animname, animation, true)) return 1;
    }
    return 0;
}

strtok (const string[], &index)
{
2) проблема
PHP:
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;
}
PHP:
return result;
Это строка 46237
PHP:
{
Это строка 46223
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу