SQL_ReadResult to read string
Hello,
I have the follwing query: "formatex( strQuery, charsmax( strQuery ), "SELECT Salt FROM Player WHERE ( Player.SteamID = %s )", strPlayerAuthID );" Now if I understand MySQL correctly, this should return the string called Salt of that player. My question is, how do I go about to read that result? I saw this in the include files: Code:
/**Code:
SQL_ReadResult( hQuery, 0, strSalt, charsmax( strSalt ) ); |
Re: SQL_ReadResult to read string
Passing two extra params - return string in 1st arg, max length in 2nd
Read what you posted. |
Re: SQL_ReadResult to read string
Quote:
|
Re: SQL_ReadResult to read string
Yes, the second parameter tells which column to pull data from, where 0 is the first one.
Why didn't you just try it by yourself? |
| All times are GMT -4. The time now is 18:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.