25.07.2010, 12:35
(
Последний раз редактировалось soulas85; 25.07.2010 в 15:35.
)
Error's:
Line's:
Please help me, i can't fix it!
Код:
C:\Users\Slashas94\Desktop\Sona GM\gamemodes\Sona.pwn(1361) : error 021: symbol already defined: "strtok" C:\Users\Slashas94\Desktop\Sona GM\gamemodes\Sona.pwn(1376) : error 047: array sizes do not match, or destination array is too small
Код:
public OnPlayerExitedMenu(playerid)
{
return 1;
}
stock 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;
}

