Jump to content
  • 0

pomoc Error include


Guest obzi

Dotaz

zdravim.....udelal jsem si do modu registraci a haze mi to error v includu

C:\Documents and Settings\tomas.T-508A4E3434B64\Plocha\SA-MP\pawno\include\dutils.inc(318) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Documents and Settings\tomas.T-508A4E3434B64\Plocha\SA-MP\pawno\include\dutils.inc(337) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Documents and Settings\tomas.T-508A4E3434B64\Plocha\SA-MP\pawno\include\dutils.inc(355) : warning 219: local variable "count" shadows a variable at a preceding level

please nevite co s tim? tady davam i potrebne radky s includu

stock copy(dest[],source[],count) {
dest[0]=0;
if (count<0) return false;
if (count>strlen(source)) count=strlen(source);
new i=0;
for (i=0;i		dest[i]=source[i];
	if (source[i]==0) return true;
}
dest[count]=0;
return true;
}


/**
*  Deletes the first 'count' items of a array/string
*  @param   string[]
*           count
*/
stock delete(string[],count) {
new tmp[MAX_STRING];
tmp[0]=0;
if (count<=0) {
	format(tmp,sizeof(tmp),"%s",string);
	return tmp;
}
tmp=ret_memcpy(string,count,strlen(string));
return tmp;
}

/**
*  Sets a string's value to source.
*  @param   dest
*           source
*           count
*/
stock set(dest[],source[]) {
new count = strlen(source);
new i=0;
for (i=0;i		dest[i]=source[i];
}
dest[count]=0;
}

sou to radky 318 az 361

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...