dex7e
Дебютант
HTML:
[SIZE=5](46927) : error 021: symbol already defined: "strtok"
(46941) : error 047: array sizes do not match, or destination array is too small[/SIZE]
HTML:
[SIZE=5]stock SetPlayerWalkingStyle(playerid, style)
{
WalkStyle[playerid] = style;
}
stock GetPlayerWalkingStyle(playerid)
{
return WalkStyle[playerid];
}
strtok(const string[], &index){ \\46927
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; \\46941
return result;
}[/SIZE]
Не понимаю в чем проблема.
