Raised This Month: $51 Target: $400
 12% 

SQL_ReadResult error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-21-2020 , 17:33   SQL_ReadResult error
Reply With Quote #1

Hi, I also have a problem with the 'SQL_ReadResult' function, this function is to see if the player in the database has VIP.

The column in the database is called: vip.


Error:
PHP Code:
08/22/2020 00:26:00: [MySQLInvalid column: -1
08
/22/2020 00:26:00: [AMXXDisplaying debug trace (plugin "test.amxx")
08/22/2020 00:26:00: [AMXXRun time error 10native error (native "SQL_ReadResult")
08/22/2020 00:26:00: [AMXX] [0test.sma::register_client (line 7771

Last edited by jugule; 08-21-2020 at 22:49.
jugule is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-21-2020 , 18:08   Re: SQL_ReadResult error
Reply With Quote #2

The error may be in the results from the sql, the columns are wrong.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-21-2020 , 18:13   Re: SQL_ReadResult error
Reply With Quote #3

Quote:
Originally Posted by Shadows Adi View Post
The error may be in the results from the sql, the columns are wrong.
in sql :
table: players : colum is vip (value 1 = vip / value 0 = no vip)
whats are wrong?
jugule is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-21-2020 , 18:25   Re: SQL_ReadResult error
Reply With Quote #4

Then try to change this:
Code:
g_vip[id] = SQL_ReadResult(Query, vip3);
in
Code:
g_vip[id] = SQL_ReadResult(Query, /*Column Number*/);
I mean, avoid this:
PHP Code:
new vip3 SQL_FieldNameToNum(Query"vip"); 
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-21-2020 , 18:36   Re: SQL_ReadResult error
Reply With Quote #5

Quote:
Originally Posted by Shadows Adi View Post
Then try to change this:
Code:
g_vip[id] = SQL_ReadResult(Query, vip3);
in
Code:
g_vip[id] = SQL_ReadResult(Query, /*Column Number*/);
I mean, avoid this:
PHP Code:
new vip3 SQL_FieldNameToNum(Query"vip"); 
same problem.
jugule is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-21-2020 , 19:13   Re: SQL_ReadResult error
Reply With Quote #6

Provide more code.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-21-2020 , 22:50   Re: SQL_ReadResult error
Reply With Quote #7

solved.
jugule is offline
ZaX
Senior Member
Join Date: Jan 2015
Old 08-22-2020 , 07:55   Re: SQL_ReadResult error
Reply With Quote #8

And how did you solve it? Post the solution because other people might have the same issue
ZaX is offline
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 23:50.


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