26.01.2011, 22:12
fui compilar o server e deu
oq esta em volta й
vlw ai gente
Код:
(13480) : error 021: symbol already defined: "strtok" (13495) : error 047: array sizes do not match, or destination array is too small
Код:
Checkprop();
format(string, sizeof(string), "Loteria: Ja comecou a loteria.");
OOCOff(COLOR_WHITE, string);
new rand = random(80);
if(rand < 77) { rand += 3; }
Lotto(rand);
return 1;
}
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;
}

