MySQL R38 Cache problem
#1

Hello guys, I have a big problem...
the clan name load but loaded with clan color.

Код:
forward LoadClanData(clanid);
public LoadClanData(clanid)
{
	cache_get_data(Row,Field,Handle);
	if(Row)
	{
                new tmp[100];
		cache_get_field_content(0, "cColor", tmp);
		strins(cData[clanid][cColor],tmp,0);

		cache_get_field_content(0, "cFounder", tmp);
		strins(cData[clanid][cFounder],tmp,0);

		cache_get_field_content(0, "cName", tmp);
		strins(cData[clanid][cName],tmp,0);

		printf("%s ",cData[clanid][cName]);
	}
	return 1;
}
The result:
"NoneFFFC8"

please help meee
Reply
#2

Try this:
PHP код:
cache_get_field_content(0"cName"tmp);
format(cData[clanid][cName], 64"%s"tmp); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)