Регистр имени (mysql)
#2

Код:
stock GetAccountID(playerid)
{
	new query[128], name[30];
	GetPlayerName(playerid,name,sizeof(name));
    format(query, sizeof(query),"SELECT `ID` FROM `players` WHERE `Name` = '%s'", name);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows() == 1)
	{
        PlayerInfo[playerid][pID] = mysql_fetch_int();
        mysql_free_result();
        return PlayerInfo[playerid][pID];
  	}
	return 0;
}
Reply


Messages In This Thread
Регистр имени (mysql) - by Leonidjp - 12.09.2013, 19:26
Re: Регистр имени (mysql) - by Leonidjp - 12.09.2013, 19:31
Re: Регистр имени (mysql) - by CamperGTA - 12.09.2013, 19:31
Re: Регистр имени (mysql) - by CamperGTA - 12.09.2013, 19:38
Re: Регистр имени (mysql) - by Leonidjp - 12.09.2013, 21:46
Re: Регистр имени (mysql) - by NordMan - 15.09.2013, 15:58
Re: Регистр имени (mysql) - by TRPG - 15.09.2013, 16:26
Re: Регистр имени (mysql) - by Stepashka - 15.09.2013, 16:27
Re: Регистр имени (mysql) - by Leonidjp - 26.03.2014, 19:48
Re: Регистр имени (mysql) - by Stepashka - 27.03.2014, 07:13

Forum Jump:


Users browsing this thread: 1 Guest(s)