[HELP] String problem in includes.
#1

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
Reply


Messages In This Thread
[HELP] String problem in includes. - by MartinDee - 31.07.2010, 08:31
Re: [HELP] String problem in includes. - by willsuckformoney - 31.07.2010, 08:47
Re: [HELP] String problem in includes. - by MartinDee - 31.07.2010, 08:54
Re: [HELP] String problem in includes. - by iggy1 - 31.07.2010, 09:02
Re: [HELP] String problem in includes. - by MartinDee - 31.07.2010, 09:43
Re: [HELP] String problem in includes. - by kc - 31.07.2010, 09:47

Forum Jump:


Users browsing this thread: 2 Guest(s)