14.10.2009, 11:20
I'm still learning the whole programming language, so I'm getting a little stumped...
With this, the player's information is saved in a database (nickname, password, ip, etc.)... Also whether or not they are an admin...
This: format(string,sizeof(string),"SELECT admin WHERE nickname='%s'",name); would give the result of either 1 for yes or 0 for no... But I just don't know how to get that value 1 or 0 out from the database and into a variable, string etc.
I've played around with a few of the MYSQL functions, but I'm stumped with this one...
And because of the way this script is written, its very important for me to be able to get this information out...
Thanks in advance for any advice...
With this, the player's information is saved in a database (nickname, password, ip, etc.)... Also whether or not they are an admin...
This: format(string,sizeof(string),"SELECT admin WHERE nickname='%s'",name); would give the result of either 1 for yes or 0 for no... But I just don't know how to get that value 1 or 0 out from the database and into a variable, string etc.
I've played around with a few of the MYSQL functions, but I'm stumped with this one...
And because of the way this script is written, its very important for me to be able to get this information out...
Thanks in advance for any advice...

