Raised This Month: $ Target: $400
 0% 

an SQL issue (somewhat)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
djh
Member
Join Date: Nov 2004
Old 09-14-2007 , 15:34   an SQL issue (somewhat)
Reply With Quote #1

hello,
is it possible to parse an sql result and get to the nextrow only if some user presses a bound key or smth?
IE: while (sql_moreresults(query)) { do_stuff(); wait till user presses F11; slq_nextrow(query) } ?
djh is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 09-14-2007 , 22:40   Re: an SQL issue (somewhat)
Reply With Quote #2

Hey, this isnt an AMXx related support issue! This is a coding help issue.

Moved to correct forum. Next time I'm deleting your thread.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
djh
Member
Join Date: Nov 2004
Old 09-15-2007 , 04:35   Re: an SQL issue (somewhat)
Reply With Quote #3

I am really sorry, I posted it last night and I was tired.
Thank you for not deleting the thread.
djh is offline
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 09-15-2007 , 18:13   Re: an SQL issue (somewhat)
Reply With Quote #4

No problems...happens to everyone once and a while.
__________________
Quote:
Originally Posted by Brad View Post
That sounds like a really good idea!
Now replace the word "good" with "dumb".
What was your rationale for proposing such a thing?
Roach is offline
djh
Member
Join Date: Nov 2004
Old 09-16-2007 , 13:14   Re: an SQL issue (somewhat)
Reply With Quote #5

no ideeas ?
djh is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-19-2007 , 08:19   Re: an SQL issue (somewhat)
Reply With Quote #6

You could get all the rows, then put them into a player array.
The player could cycle through the array on button press.

If you waited as implied by your first code, the game would hang until the player pressed the button ...
purple_pixie is offline
Reply



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:11.


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