Raised This Month: $32 Target: $400
 8% 

[HELP] SQLx


Post New Thread Reply   
 
Thread Tools Display Modes
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 09-21-2012 , 06:02   Re: [HELP] SQLx
Reply With Quote #11

Quote:
Originally Posted by Alka View Post
Did you take a look at what Yami posted?
PHP Code:
SQL_ReadResult(Query1nick[id], 31); 
i assume that nick[] it's a string and it's properly declared. Replace 31 with your string size...
PHP Code:
#define MAX_PLAYERS 33
#define MAX_NAME_LENGTH 64 /* Example */

new cNameMAX_PLAYERS ][ MAX_NAME_LENGTH ];
SQL_ReadResulthQuery1cNameiPlayer ], charsmaxcNameiPlayer ] ) ); // ( sizeof ( cName[ iPlayer ] ) - 1 ) 
__________________

Last edited by claudiuhks; 09-21-2012 at 06:03.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-21-2012 , 06:36   Re: [HELP] SQLx
Reply With Quote #12

Thanks captain! But it's not my job to learn optimizations, if quote was about that...and btw you don't need to index the array when you use charsmax()
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-21-2012 at 10:15.
Alka is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-22-2012 , 04:53   Re: [HELP] SQLx
Reply With Quote #13

claudiu your code gives errors c:
But forgett, i already figure it out how to do it. And it's working fine.
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 09-22-2012 at 04:55.
quark is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 09-22-2012 , 09:59   Re: [HELP] SQLx
Reply With Quote #14

charsmax( cName[ iPlayer ] ) -> charsmax( cName[ ] )
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-22-2012 , 10:00   Re: [HELP] SQLx
Reply With Quote #15

Quote:
Originally Posted by lucas_7_94 View Post
charsmax( cName[ iPlayer ] ) -> charsmax( cName[ ] )
No, it was correct
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 09-22-2012 at 10:00.
YamiKaitou 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:31.


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