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)
{
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;
PHP:
{
