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




 
VK: vk.com/sergey68

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

:

1 4 4

  1. #1

      Den4ik-Den

    :
    :23.11.2014
    :129
    :2 [+/-] 

    . ( ), . , , , .
    :
    , DD , .
    :
    PHP :
    CMD:division(playerid,params[])
    {
        new 
            
    id
            
    DA[7], 
            DO[
    32],
            
    string[680],
            
    stringM[90], 
            
    organizacia 1;
        if(
    sscanf(params,"u",id)) return SendClientMessage(playerid, -1,"[] : /division (ID - /)");
        if(!
    IsPlayerLogged[id]) return false;
        
    SetPVarInt(playerid,"divID",id);
        
    #define orgN PlayerInfo[playerid][pMember]
        
    if(orgN == 1organizacia 1;
        
    format(stringMsizeof(stringM), "SELECT * FROM `divisions` WHERE `IDorg` = '%d' ORDER BY `ID`"organizacia);
        new 
    Cache:result mysql_query(mysqlstringM);
        new 
    DN cache_get_row_count(mysql);
        if(
    DN == 0) return SendClientMessage(playerid, -1," ");
        
    format(stringsizeof(string), "{FF6347}1.{ffffff}  \n");
        for(new 
    i,countDN++)
        {
            
    dialog_listitem_values[playerid][count] = cache_get_row_int(i0mysql);
            
    cache_get_row(i2DAmysql);
            
    cache_get_row(i3, DO, mysql);
            
    //dialog_listitem_values[playerid][count] = division_id;
            
    count++;
            
    format(stringsizeof(string), "%s{FF6347}%d. {ffffff}%s %s\n"string,i+2, DO,DA);
        }
        
    cache_delete(resultmysql);
        if(!
    ShowPlayerDialogEx(playerid96682"{F2C934} "string""""))SendClientMessage(playeridCOLOR_GREY"   .");
        return 
    1;

    :
    PHP :
    case 9668:
            {
                if(
    response)
                {
                    new 
    idDiv[MAX_PLAYERS];
                    new 
    divIDs GetPVarInt(playerid,"divID"),
                        
    DA[7];
                    if(
    listitem == 0) {
                        
    SendClientMessage(playerid,-1," ");
                        
    SetString(PlayerInfo[divIDs][Division],"");
                    }
                    else
                    {
                        
    idDiv[playerid] = dialog_listitem_values[playerid][listitem];
                        
    //new stringM[90];
                        //format(stringM, sizeof(stringM), "SELECT `DA` FROM `divisions` ORDER BY `ID`");
                        
    new Cache:result mysql_query(mysql"SELECT `DA` FROM `divisions` ORDER BY `ID`");
                        
    cache_get_row(idDiv[playerid],0,DA,mysql);
                        
    SetString(PlayerInfo[divIDs][Division],DA);
                        
    format(string,sizeof(string),"   %s, ID - %d",DA,idDiv[playerid]);
                        
    SendClientMessage(playerid,COLOR_RED,string);
                        
    cache_delete(resultmysql);
                        
    //format(string,sizeof(string),".    %d",dialog_listitem_values[playerid][listitem-1]);

                        //SendClientMessage(playerid,COLOR_RED,string);
                    
    }
                    
    DeletePVar(playerid,"divID");
                }
            } 
    :
    K 2014
  2. #2
    V.I.P

      gangzone.ini

    :
    :21.05.2015
    :569
    :265 [+/-] 


    PHP :
    new divIDs GetPVarInt(playerid,"divID");
    DeletePVar(playerid,"divID");
    if(
    listitem == 0
    {
        
    SendClientMessage(playerid,-1," ");
        
    SetString(PlayerInfo[divIDs][Division],"");
    }
    else
    {
        new 
    idDiv dialog_listitem_values[playerid][listitem-1];
        new 
    stringM[90],
            
    DA[7];
        
    format(stringMsizeof(stringM), "SELECT `DA` FROM `divisions` WHERE `ID`='%d' LIMIT 1"idDiv);
        new 
    Cache:result mysql_query(mysqlstringM);
        
    cache_get_row(idDiv,0,DA,mysql); 
        
    cache_delete(resultmysql);
        
    SetString(PlayerInfo[divIDs][Division],DA);
        
    format(string,sizeof(string),"   %s, ID - %d",DA,idDiv);
        
    SendClientMessage(playerid,COLOR_RED,string);

        
    //format(string,sizeof(string),".    %d",idDiv);
        //SendClientMessage(playerid,COLOR_RED,string);

    -
  3. 1 c gangzone.ini :

    Den4ik-Den (02.10.2019)

  4. #3

      Den4ik-Den

    :
    :23.11.2014
    :129
    :2 [+/-] 
    PHP :
    [17:21:33 10/02/19] [WARNINGCMySQLResult::GetRowData invalid row ('6') or field index ('0') (Query"SELECT `DA` FROM `divisions` WHERE `ID`='6' LIMIT 1"
    - NULL.
    UPD: , .

    PHP :
    cache_get_row(idDiv,0,DA,mysql); 

    PHP :
    cache_get_row(0,0,DA,mysql); 
    gangzone.ini - !
    .
    Den4ik-Den; 02.10.2019 17:31.
    K 2014
  5. #4
    , .

, : 23

, , , , , , , case, cmd, define, , , , , , , message, mysql, php, playerid, playerinfo, red, select, sscanf,

(, , , , , ), , .
!
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