Raised This Month: $32 Target: $400
 8% 

Solved IsFieldNull Tag & Args Mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 08-29-2017 , 12:20   IsFieldNull Tag & Args Mismatch
Reply With Quote #1

PHP Code:
    if (results != null && results.RowCount >= 1)
    {    
        
results.FetchRow();
        
        if (!
results.IsFieldNull(0)) //Error occurs here
        
{

        }
    } 
Error:

PHP Code:
D:\Github\Trade-Helper\Trade_Helper.sp(163) : warning 213tag mismatch
D
:\Github\Trade-Helper\Trade_Helper.sp(163) : error 092number of arguments does not match definition 
Doc: https://sm.alliedmods.net/new-api/db...et/IsFieldNull

Last edited by RumbleFrog; 08-29-2017 at 13:33.
RumbleFrog is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-29-2017 , 12:36   Re: IsFieldNull Tag & Args Mismatch
Reply With Quote #2

in what case would you have results, but the first entry wouldn't have anything returned?
Mitchell is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 08-29-2017 , 12:53   Re: IsFieldNull Tag & Args Mismatch
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
in what case would you have results, but the first entry wouldn't have anything returned?
I'm selecting a specific column, the row can exist, but that column doesn't necessarily need to contain data for the row to exist.
RumbleFrog is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 08-29-2017 , 13:33   Re: IsFieldNull Tag & Args Mismatch
Reply With Quote #4

Turns out my dbi.inc file was mismatching, fixed
RumbleFrog is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-29-2017 , 14:39   Re: IsFieldNull Tag & Args Mismatch
Reply With Quote #5

Considering how long ago that inc was fixed, you should probably update all your includes and your spcomp (one that old has all sorts of known issues with the transitional syntax.)
__________________
asherkin is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 08-29-2017 , 16:10   Re: IsFieldNull Tag & Args Mismatch
Reply With Quote #6

Quote:
Originally Posted by asherkin View Post
Considering how long ago that inc was fixed, you should probably update all your includes and your spcomp (one that old has all sorts of known issues with the transitional syntax.)
Yeah, for some reason the "old" ones have new dates to them, so it's automatically resyncing the old ones back.
RumbleFrog 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 04:36.


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