[MySQL] Check Account not quite working
#3

You are not using threaded queries correctly.
https://sampforum.blast.hk/showthread.php?tid=337810

Код:
stock CheckAccountExists(account[])
{
        new string[128];
        format(string, sizeof(string), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1", account);
        mysql_function_query(mCon, string, true, "CheckAccount", "","");
        return 1;
}
Код:
forward CheckAccount();
public CheckAccount()
{
      new rows, fields;
      cache_get_data(rows, fields);
      if(rows) // registered
      {
      }
      else // Not registered
      {
      }
}
Reply


Messages In This Thread
[MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 03:00
Re: [MySQL] Check Account not quite working - by Treyvan - 16.01.2013, 03:07
Re: [MySQL] Check Account not quite working - by coakiddo - 16.01.2013, 06:54
Re: [MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 12:33
Re: [MySQL] Check Account not quite working - by coakiddo - 16.01.2013, 14:10
Re: [MySQL] Check Account not quite working - by Kontrol - 16.01.2013, 14:24
Re: [MySQL] Check Account not quite working - by Kontrol - 17.01.2013, 02:04
Re: [MySQL] Check Account not quite working - by Kontrol - 17.01.2013, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)