Quote:
|
Originally Posted by Sylwester
I suspect that the problem is caused by invalid steamid sent in the SELECT query (there is some checking in register_client to see if the steamid is correct, but there is none in Load_MySQL).
|
That could it be.
Quote:
|
Originally Posted by Sylwester
1. SQL_NumResults returns number of rows retrieved from database. If you execute SELECT ... WHERE steamid = '%s'; it will be greater than 0 for all steamids that are present in database so "if" condition will be false.
|
That's what i want, check if the steamid is in the database, if yes, load the entries, when not, insert the steamid to the database with money 0.
Quote:
|
Originally Posted by Sylwester
3. Using SQL_ReadResult to check if there were any rows retrieved from database is incorrect.
|
Why?