PDA

View Full Version : [Solved] Load multi-line "TEXT" from SQL?


greenteaf
12-31-2011, 19:45
Hello, I recently helping a friend to write a plugin,
and this is my first time to use SQL with sourcemod,
how do i load multi-line text in to string array from SQL
can someone help me out with it?

Thx.:)

lokizito
12-31-2011, 20:19
After using SQL_FetchString, you probably will get your multi-line text in one only "line". The lines will be joined by \n. So, for putting it in Arrays, just use ExplodeString.

greenteaf
12-31-2011, 20:57
After using SQL_FetchString, you probably will get your multi-line text in one only "line". The lines will be joined by \n. So, for putting it in Arrays, just use ExplodeString.

Ahh...
Never thought that can be so easy like this :shock:
Thanks alot :)