Loading strings from SQL
#7

Use format.

pawn Код:
format(YourString, 128, resultsplit[blahblah]);
YourString - String that's getting compiled from the result.
128 - The maximum size.
resultsplit[First dimension] - The two dimension array that you would use for integers and floats. ( strval(resultsplit[dfskdksjf]);

Here's an example of one of my MySQL loadings..

pawn Код:
format(FactionData[fid][fMOTD], 128, fsplit[3]);
FactionData[fid][fAreaColor] = strval(fsplit[4]);
Reply


Messages In This Thread
Loading strings from SQL - by Antonio [G-RP] - 19.06.2010, 18:22
Re: Loading strings from SQL - by dice7 - 19.06.2010, 19:01
Re: Loading strings from SQL - by Antonio [G-RP] - 19.06.2010, 19:17
Re: Loading strings from SQL - by WackoX - 19.06.2010, 19:24
Re: Loading strings from SQL - by Antonio [G-RP] - 19.06.2010, 20:10
Re: Loading strings from SQL - by WackoX - 20.06.2010, 10:54
Re: Loading strings from SQL - by Carlton - 20.06.2010, 11:00
Re: Loading strings from SQL - by Sergei - 20.06.2010, 11:02
Re: Loading strings from SQL - by Antonio [G-RP] - 21.06.2010, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)