31.07.2010, 08:31
Hello, how to change this include so I don't get this error?
Код:
IsNumeric(const string[]) { for (new i = 0, j = strlen(string); i < j; i++) { if (string[i] > '9' || string[i] < '0') return 0; } return 1; }
Код:
stock DINI_StripNewLine(string[]) { new len = strlen(string); if (string[0]==0) return ; if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) { string[len - 1] = 0; if (string[0]==0) return ; if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0; } }
Код:
C:\Server\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level C:\Server\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level