Mysql reading string values - 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 reading string values (
/showthread.php?tid=533828)
Mysql reading string values -
Tommboow - 26.08.2014
Hello everyone,
i'm putting a string like "tammy" into the variable like this:
Код:
cache_get_field_content(i, "owner", cInfo[cache_get_row_int(i, 0, mysql)][carowner], mysql,200);
Onload it works:
As soon i try to read it it will give me the wrong tekst, im trying to display it on the chat like this:
Код:
new vecid = GetNearest_Vehicle(playerid, 1);
new string[100];
format(string,sizeof(string),"%s",cInfo[vecid][carowner]);
SendClientMessage(playerid,YELLOW,string);
Hopefully someone can help me.
(Teamviewer is possible)
Thnx,
Tom
Re: Mysql reading string values -
Tommboow - 27.08.2014
Someone can help me ?