! - . . , , . , , , (, ) . !






" LEAGUE"
VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

:

1 10 87

  1. #1

      Jam999

    :
    :16.01.2019
    :4
    :0 [+/-] 

    . ,
    , .
    .

    . - https://imgur.com/a/mPbDoNK

    , <a_mysql>

    PHP :
    #include <a_samp>
    #include <a_mysql> 
    .

    PHP :
    #define MySQL_HOST "localhost" //  MySQL
    #define MySQL_USER "root" //   MySQL
    #define MySQL_BASE "base" //   MySQL
    #define MySQL_PASS "" //    MySQL 
    , new dbHandle;
    , : connect_mysql

    PHP :
    new dbHandle
    . OnGameModeInit(),

    PHP :
    public OnGameModeInit()
    {
        
    dbHandle mysql_connect(MySQL_HOSTMySQL_USERMySQL_BASE MySQL_PASS);
        return 
    true;

    . , MySQL

    PHP :
    public OnGameModeInit()
    {
        
    dbHandle mysql_connect(MySQL_HOSTMySQL_USERMySQL_BASE MySQL_PASS);
        if(
    mysql_errno()==0)
        {
            
    printf("[MySQL]:      .");
        }
        else
        {
            return 
    printf("[MySQL]:       !   #%d"mysql_errno());
        }
        return 
    true;

    . OnGameModeInit() .

    PHP :
    public OnGameModeInit()
    {
        
    dbHandle mysql_connect(MySQL_HOSTMySQL_USERMySQL_BASE MySQL_PASS);
        if(
    mysql_errno()==0)
        {
            
    printf("[MySQL]:      .");
        }
        else
        {
            return 
    printf("[MySQL]:       !   #%d"mysql_errno());
        }
        
    mysql_set_charset("cp1251");
        return 
    true;

    .

    PHP :
    enum pInfo
    {
        
    pID// ID 
        
    pName[24+1], //  , 24 - .  , +1 -  .
        
    pPass[32+1//  , 32 - . , +1 -  
    }
    new 
    PlayerInfo[MAX_PLAYERS][pInfo]; 
    . OnPlayerConnect(playerid),

    PHP :
    public OnPlayerConnect(playerid)
    {
        
    GetPlayerName(playeridPlayerInfo[playerid][pName], 24+1); // 24 - . , +1 -  .
        
    return true;

    . OnPlayerConnect(playerid), MySQL
    PHP :
    public OnPlayerConnect(playerid)
    {
        
    GetPlayerName(playeridPlayerInfo[playerid][pName], 24+1); // 24 - . , +1 -  .
        
    format(stringsizeof(string), "SELECT `ID` FROM `accounts` WHERE `Name` = '%s'"PlayerInfo[playerid][pName]);
        
    mysql_function_query(dbHandlestringtrue"OnPlayerRegCheck""d"playerid); // OnPlayerRegCheck -   ,  ,  ,  .
        
    return true;

    . OnPlayerRegCheck(playerid);

    PHP :
    forward OnPlayerRegCheck(playerid);
    public 
    OnPlayerRegCheck(playerid)
    {
        new 
    rowsfields;
        
    cache_get_data(rowsfields)
        if(
    rows)
        {
            
    //  .
        
    }
        else
        {
            
    //   .
        
    }
        return 
    true;

    . . , .
  2. #2

      Maks5

    :
    :17.05.2011
    :
    :3,056
    :979 [+/-] 
    MySQL ...
  3. #3

      SholohovTM

    :
    :20.02.2019
    :
    :2
    :0 [+/-] 
    , , . , , , .
    ( ) mysql , .
    PHP :
        new rowsfields
        
    cache_get_data(rowsfields
    ....
    , - . , , , , .
    , . , . , . , , , , , , . , , , , .


    ,
  4. #4

      Salery

    :
    :27.11.2016
    :452
    :390 [+/-] 
    ? 6 , mysql_set_charset("cp1251"); - , ? ,
  5. #5

      AndNatt

    :
    :03.01.2012
    :250
    :22 [+/-] 
    PHP :
    public OnPlayerConnect(playerid

        
    GetPlayerName(playeridPlayerInfo[playerid][pName], 24+1); // 24 - . , +1 -  . 
        
    format(stringsizeof(string), "SELECT `ID` FROM `accounts` WHERE `Name` = '%s'"PlayerInfo[playerid][pName]); 
        
    mysql_function_query(dbHandlestringtrue"OnPlayerRegCheck""d"playerid); // OnPlayerRegCheck -   ,  ,  ,  . 
        
    return true

    new string[...] - ?
  6. #6

      AndreY.eXe

    :
    :16.09.2017
    :unknown
    :1,303
    :215 [+/-] 
    1. SQL- , . , , .
    2. , / (""). / .
    3. MySQL , MySQL: new: new MySQL: dbhandle.
    4. :
    PHP :
    public OnGameModeInit()

        
    dbHandle mysql_connect(MySQL_HOSTMySQL_USERMySQL_BASE MySQL_PASS);
        if(!
    mysql_errno())
        {
            
    printf("[MySQL]:       !   #%d"mysql_errno());
            return 
    OnGameModeExit();
        }

        
    mysql_set_charset("cp1251");
        return 
    printf("[MySQL]:      .");

    5. +1? 24+1?
    6. , 9 new string.
    7. mysql_format, SQL-.
    8. cache_get_data cache_num_rows();
    9. forward :
    PHP :
    public OnPlayerConnect(playerid
    {
        new 
    string[48 25];
        
    GetPlayerName(playeridPlayerInfo[playerid][pName], 25); // 24 - . , +1 -  . 

        
    mysql_format(dbhandlestringsizeof(string), "SELECT `ID` FROM `accounts` WHERE `Name` = '%s'"PlayerInfo[playerid][pName]); 
        
    mysql_query(dbhandlestring);

        if(!
    cache_num_rows())
        {
            
    //   
        
    }
        else 
        {
            
    //  
        
    }
        return 
    true



    VKontakte: vk.com/ero_andru.
    Telegram: t.me/AndreYeXe.
  7. #7
  8. #8
    ,
    PHP :
    GetPlayerName(playeridPlayerInfo[playerid][pName], 24+1); 
    24 MAX_PLAYER_NAME
  9. #9

      Lionely

    :
    :22.07.2013
    :355
    :4 [+/-] 
    "" - ? - ?
  10. #10

      OKStyle

    :
    :04.03.2011
    :
    :3,793
    :1249 [+/-] 
    ?

, : 131

/color, , , , , , dle, , , host, , , , , include, , mysql, , , , php, playerid, playerinfo, samp, string

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g