Need help with sql and amxx.
Hi, I want to make a plugin that will store data in a database I made using phpMyAdmin. I'm also using wamp.
I've been using this guide https://wiki.alliedmods.net/Advanced...ng_(AMX_Mod_X). PHP Code:
PHP Code:
|
Re: Need help with sql and amxx.
That guide is outdated use sqlx include file, for more info about sqlx natives you can search for it...
|
Re: Need help with sql and amxx.
Quote:
Code: PHP Code:
PHP Code:
|
Re: Need help with sql and amxx.
What's the Affinity type you are using ?
Also why do you need this include amxx\amxmod_compat\mysql Can you check if SqlConnection is valid in plugintriggertest |
Re: Need help with sql and amxx.
This is my first time using sql with amxx so I didn't know if i needed to include it or not.
What do you mean by Affinity type, data type stored in the database? SteamID, Username and Character_1 are varchar while Powerlevel is int. Quote:
Quote:
|
Re: Need help with sql and amxx.
Are you sure you have connected to the database?
|
Re: Need help with sql and amxx.
Here's simple mysql example, just follow it: https://forums.alliedmods.net/showthread.php?t=132686
|
Re: Need help with sql and amxx.
Quote:
After following the guide Airkish left I get this error: PHP Code:
PHP Code:
PHP Code:
|
Re: Need help with sql and amxx.
Quote:
|
Re: Need help with sql and amxx.
Here you go
PHP Code:
|
All times are GMT -4. The time now is 11:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.