[MySQL] Check Account not quite working
#5

PHP код:
public OnPlayerConnect(playerid)
{
     new 
string[128],account[MAX_PLAYER_NAME];
     
GetPlayerName(playerid,account,sizeof(account));
     
format(stringsizeof(string), "SELECT * FROM `users` WHERE `Name` = '%s' LIMIT 1"account);
     
mysql_function_query(mConstringtrue"CheckAccount""i",playerid);
     return 
1;
}
forward CheckAccount(playerid);
public 
CheckAccount(playerid)
{
      new 
rowsfields;
      
cache_get_data(rowsfields);
      if(
rows// Login code here
      
{
      }
      else 
// Register code here
      
{
      }
      return 
1;

There, also read this: http://forum.sa-mp.com/showpost.php?...postcount=2141
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)