Benson Miller
Умник
По просьбе:
Скачал Role Game 1.7. мод
Cкомпилировал, появились ошибки в inculde dutils.inc пробовал обновлять/заменять инкулд, не помогло.
Ошибки:
28 Строка:
Весь сток:
Строка 366 и 367:
Весь сток:
Строка 387:
Скачал Role Game 1.7. мод
Cкомпилировал, появились ошибки в inculde dutils.inc пробовал обновлять/заменять инкулд, не помогло.
Ошибки:
PHP:
dutils.inc(28) : error 021: symbol already defined: "isNumeric"
dutils.inc(366) : error 025: function heading differs from prototype
dutils.inc(367) : error 021: symbol already defined: "strtok"
dutils.inc(382) : error 047: array sizes do not match, or destination array is too small
PHP:
stock isNumeric(const string[]) {
PHP:
stock isNumeric(const string[]) {
new length=strlen(string);
if (length==0) return false;
for (new i = 0; i < length; i++) {
if (
(string[i] > '9' || string[i] < '0' && string[i]!='-' && string[i]!='+') // Not a number,'+' or '-'
|| (string[i]=='-' && i!=0) // A '-' but not at first.
|| (string[i]=='+' && i!=0) // A '+' but not at first.
) return false;
}
if (length==1 && (string[0]=='-' || string[0]=='+')) return false;
return true;
}
PHP:
strtok(const string[], &index,seperator=' ')
PHP:
strtok(const string[], &index,seperator=' ')
{ //367 строка
new length = strlen(string);
new offset = index;
new result[MAX_STRING];
while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
if ((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}
PHP:
stock mod(up,down) {
return up-(floatround((up/down),floatround_floor))*down;
} // 387
