Raised This Month: $ Target: $400
 0% 

SQL Selecting a Row?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 12-27-2008 , 03:10   SQL Selecting a Row?
Reply With Quote #1

Okay, so, I have this.
Code:
    while(SQL_MoreResults(Query))     {         SQL_ReadResult(Query,0,Origin[0]);         SQL_ReadResult(Query,1,Origin[1]);         SQL_ReadResult(Query,2,Origin[2]);                 new Float:Distance = get_distance_f(Origin,EntOrigin);         if(Distance <= 37.0)         {                        // RIGHT HERE I WANT TO DELETE THIS ROW         }         SQL_NextRow(Query);    } }
Reading the comment, is it possable to get what row it's reading? So i can delete it. SQL_NextRow doesn't return a value, so I have no idea.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 09:18.


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