Raised This Month: $ Target: $400
 0% 

Mysql Tricky :/


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellraser
Member
Join Date: Jul 2004
Old 09-11-2004 , 16:56   Mysql Tricky :/
Reply With Quote #1

Hey all,i've succesfully made my mysql cvar loading plugin but i wanted to add a function that the server would only read the cvar if the server_id= server ip...so i did this:

Code:
    
new net_address[32] 
get_cvar_string("net_address",net_address,31)
if(mysql_query(mysql,"SELECT cvar,value FROM cvars where server_id='%s'",net_address)>0)
But it doesn't work the server doesnt load any cvars.i get this error when compiling
Quote:
warning 202: number of arguments does not match definition
Any ideas ?
Thanks,
hellraser is offline
hellraser
Member
Join Date: Jul 2004
Old 09-12-2004 , 03:36  
Reply With Quote #2

anyone please?
hellraser is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 09-12-2004 , 03:48  
Reply With Quote #3

the warning means somehting is either missing or u use for instance a period when u should of used a comma compared to the definition in the include.. what are ur includes, if custom may i take a look?
Da Bishop is offline
Send a message via MSN to Da Bishop
hellraser
Member
Join Date: Jul 2004
Old 09-12-2004 , 04:22  
Reply With Quote #4

I fixed it =) Thx m8
hellraser is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 09-12-2004 , 09:09  
Reply With Quote #5

np man
Da Bishop is offline
Send a message via MSN to Da Bishop
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 17:20.


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