07.02.2011, 22:35
This code used to work before I switched to G-sTyLezZz SQL plugin.
Any idea what's wrong?
Any idea what's wrong?
pawn Код:
stock InitPlayerConnection(playerid)
{
ResetPlayerVariables(playerid);
new Query[128], Name[MAX_PLAYER_NAME], EscapedName[MAX_PLAYER_NAME], resultline[64];// field[3][3];
GetPlayerName(playerid, Name, sizeof(Name));
mysql_real_escape_string(Name, EscapedName);
format(Query, sizeof(Query), "SELECT `SQLid` FROM `accounts` WHERE `username` = '%s'", EscapedName);
mysql_query(Query);
mysql_store_result();
if( mysql_num_rows() >= 1 )
{