MySQL R38 Cache problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL R38 Cache problem (
/showthread.php?tid=538568)
MySQL R38 Cache problem -
ShveDDii - 22.09.2014
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
Re: MySQL R38 Cache problem -
ranme15 - 22.09.2014
Try this:
PHP код:
cache_get_field_content(0, "cName", tmp);
format(cData[clanid][cName], 64, "%s", tmp);