MySQL account issue
#5

Already have this

pawn Код:
public FindPlayerSQL(playerid)
{
    CheckSQL();
    new query[128],pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    mysql_real_escape_string(pname,pname);
    format(query,sizeof(query),"SELECT playerid FROM `players` WHERE name='%s' LIMIT 1",pname);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pSQLId] = mysql_fetch_int();
    mysql_free_result();
    return 1;
}
Reply


Messages In This Thread
MySQL account issue - by jamesb93 - 05.12.2009, 19:59
Re: MySQL account issue - by Grim_ - 05.12.2009, 21:17
Re: MySQL account issue - by jamesb93 - 05.12.2009, 21:25
Re: MySQL account issue - by Grim_ - 05.12.2009, 21:30
Re: MySQL account issue - by jamesb93 - 05.12.2009, 23:39
Re: MySQL account issue - by Grim_ - 05.12.2009, 23:44
Re: MySQL account issue - by jamesb93 - 06.12.2009, 00:11
Re: MySQL account issue - by jamesb93 - 06.12.2009, 08:58
Re: MySQL account issue - by Sergei - 06.12.2009, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)