02.01.2012, 20:49
Hi all, I have this query where my OnPlayerConnect is to catch whether the player is registered though the only problem with it is that it's case sensitive which I don't really want to use.
I've already have about 3,000 player's registered in 2 days, it'd be a total nightmare to destroy their work put into the server I have...
I'm not sure how to do this though, asking for help here. MYSQL doesn't be a bitch like SQLite does, so i'm wondering if anyone has a answer to this.
Just to make sure no-one gets confused about my using my mysql query:
Probably a less efficient option there ^^
I've already have about 3,000 player's registered in 2 days, it'd be a total nightmare to destroy their work put into the server I have...
pawn Код:
format( Query, sizeof( Query ), "SELECT `NAME` FROM `USERS` WHERE `NAME` = '%s'", DB_Escape( name ) );
Result = db_query( Database, Query );
Just to make sure no-one gets confused about my using my mysql query:
pawn Код:
format(query, sizeof(query), "SELECT * FROM `player_data` WHERE NAME = '%s' LIMIT 0,1", ReturnPlayerName(playerid));
mysql_query(query);