Raised This Month: $ Target: $400
 0% 

Solved SQL help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lawnmoverman
Member
Join Date: Jan 2017
Old 03-03-2017 , 16:45   SQL help
Reply With Quote #1

This plugins gives me compile error:

line 25 error 088: number of arguments does not match definition

And Im really cant get it: (whats missing?)
Code:
#include <amxmodx> #include <amxmisc> #include <dbi> public plugin_init() {     register_plugin("SQL Server Status", "1.0", "Lawnmoverman");     register_event("HLTV", "event_new_round", "a", "1=0", "2=0");     } public event_new_round() {     new Sql:mysql = dbi_connect("bla.bla.bla.bla", "bla", "blabla", "blablabla");       if (mysql < SQL_OK) {         new err[255];         new errNum = dbi_error(mysql, err, 254);         console_print(0, "[Status SQL]: %s|%d", err, errNum);         return 1;     }       console_print(0, "[Status SQL]: Successfully updated server status");     new Result:ret = dbi_query(mysql, "UPDATE servers SET map = '%s', players = '%d', maxplayers = '%d' WHERE hostname = 'cs.nozgaming.eu'", get_mapname(), get_playersnum(), get_maxplayers());       if (ret < RESULT_NONE) {         new err[255];         new errNum = dbi_error(mysql, err, 254);         console_print(0, "[Status SQL]: %s|%d", err, errNum);         return 1;     }       dbi_close(mysql);     return PLUGIN_HANDLED; }

Someone, please fix it! Thanks.
__________________


www.nozgaming.eu | cs.nozgaming.eu

Last edited by Bugsy; 03-03-2017 at 20:51.
Lawnmoverman is offline
 



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 20:57.


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