Raised This Month: $ Target: $400
 0% 

Solved Work with sqlx and sqlite in the same plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-02-2021 , 10:43   Work with sqlx and sqlite in the same plugin
Reply With Quote #1

I'm having doubts on how to use the 2 affinities at the same time, it may be that I have misunderstood when reading the include.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <sqlx>
#pragma defclasslib sqlite sqlite

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

public plugin_init()
{
        
register_plugin(PLUGINVERSIONAUTHOR)

        
SQL_SetAffinity("sqlite")

        new 
aff[15]
        
SQL_GetAffinity(affcharsmax(aff))
        
server_print("Driver = %s"aff// Printed Driver = sqlite

        
set_task(2.0"ChangeDriver")
}

public 
ChangeDriver()
{
        
SQL_SetAffinity("sqlx")

        new 
aff[15]
        
SQL_GetAffinity(affcharsmax(aff))
        
server_print("Driver = %s"aff// Printed Driver = sqlite

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 07-02-2021 at 13:38.
iceeedr is offline
Send a message via Skype™ to iceeedr
 


Thread Tools
Display Modes

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 02:33.


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