Raised This Month: $ Target: $400
 0% 

SQL_FieldNameToNum cached value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 08-19-2013 , 15:40   Re: SQL_FieldNameToNum cached value
Reply With Quote #2

Best:
SELECT player_value FROM ...

g_iPlayerValue[ id ] = SQL_ReadResult(Query, 0)

Just write all needed columns in query and then just type column number. Starts from 0.
SQL_FieldNameToNum is needed to use when using '*' for columns (All columns), and you don't know order. Or for removing hardcoding.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode