View Single Post
PyKw
Junior Member
Join Date: Jan 2012
Old 08-20-2019 , 13:55   Re: Problem MySQL T_LoadData
Reply With Quote #3

Quote:
Originally Posted by GetRektByNoob View Post
can i ask why are you doing
Code:
results.FieldNameToNum("valoare", valoareCol);
and not
Code:
results.FieldNameToNum("valoare", 0);
since you are defining the int but not doing anything to it
also you posted half of the error, it should be something like this
Code:
L 08/20/2019 - 19:43:27: [SM] Exception reported: [Reason]
L 08/20/2019 - 19:43:27: [SM] Blaming: testNewDb.smx
L 08/20/2019 - 19:43:27: [SM] Call stack trace:
L 08/20/2019 - 19:43:27: [SM]   [0] DBResultSet.FieldNameToNum
L 08/20/2019 - 19:43:27: [SM]   [1] Line 77, testNewDb.sp::T_LoadData
My bad, i edited the error. And I'm using that because I need to store the field index in a variable.
https://sm.alliedmods.net/new-api/db...FieldNameToNum
PyKw is offline