AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Mysql Tricky :/ (https://forums.alliedmods.net/showthread.php?t=5751)

hellraser 09-11-2004 16:56

Mysql Tricky :/
 
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 09-12-2004 03:36

anyone please?

Da Bishop 09-12-2004 03:48

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?

hellraser 09-12-2004 04:22

I fixed it =) Thx m8

Da Bishop 09-12-2004 09:09

np man


All times are GMT -4. The time now is 17:20.

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