Raised This Month: $ Target: $400
 0% 

loadnig float data from SQL


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kyriuch
Member
Join Date: Jul 2010
Old 09-23-2012 , 09:53   loadnig float data from SQL
Reply With Quote #1

Hi I got code:
PHP Code:
new Float:g_PlayerPoints[33];


Somewhere in the plugin:

ReadResult(Query1g_PlayerPoints[id]) 
where 1 is the column with 'points' which is a float value in SQL Base. The problem is when I set in base value on 55.5 and connect to server it loads 55 instead of 55.5. What am I doing wrong ?

Last edited by kyriuch; 09-23-2012 at 10:18.
kyriuch 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 08:21.


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