SA-MP Forums Archive
[MySQL] Text loading from database - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [MySQL] Text loading from database (/showthread.php?tid=176174)



[MySQL] Text loading from database - Agent Smith - 12.09.2010

Hello, I have this problem with loading text from my MySQL database.

pawn Код:
mysql_fetch_field( "name", DataString );
format(factioninfo[ idx ][ FactionName ], 256, "%s",(DataString));
But for some reason it returns the first 2 charecters of the text. I use this to get all text information from the server but it only returns the first 2 charecters from the database.

For example my first faction name in the database is 'Civilian' but it only shows: 'Ci'

Anyone know what I am doing wrong?