17.09.2011, 15:26
Код HTML:
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;
}
Код HTML:
D:\0.3c Server R5\gamemodes\SevenStar.pwn(68) : error 021: symbol already defined: "strtok"
Код HTML:
#include <a_samp> #include "../include/gl_common.inc" #include <sscanf> #pragma tabsize 0 #include <float> #include <dini> #include <a_players> #include <file> #include <core>