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







VK: vk.com/sergey68

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

: mxINI ()

1 10 41

  1. #1

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 

    mxINI ()

    mxINI http://depositfiles.com/files/4zj1dhp98
    pawno/include !P.S
    enum pInfo:
    PHP :
      Kills,
      
    Deaths,
      
    Money 
    :
    PHP :
    enum pInfo
    {
      
    Kills,
      
    Deaths,
      
    Money

    enum Kills,Deaths,Money
    enum pInfo

    PHP :
    new pStats[MAX_PLAYERS][pInfo]; 
    /stats
    Stunt-a public OnPlayerConnect2
    PHP :
     new pConfigpName[MAX_PLAYER_NAME], str[64];
         
    GetPlayerName(playeridpNamesizeof(pName));
         
    format(strsizeof(str), "%s.ini",pName);
        
    pConfig ini_openFile (str);

      if(
    pConfig == INI_OK)
        {
           
    ini_getInteger(pConfig,"Kills"pStats[playerid][Kills]);
           
    ini_getInteger(pConfig,"Deaths"pStats[playerid][Deaths]);
           
    ini_getInteger(pConfig,"Money"pStats[playerid][Money]);

            
    ini_closeFile(pConfig);

             
    SendClientMessage(playerid0xFFFFFF"[]:  .");
        }
        else
        {
            
    pConfig ini_createFile(str);
            
    SendClientMessage(playerid0xFFFFFF"[]:  .");
            if (
    pConfig == INI_OK)
            {
            
    ini_setInteger(pConfig,"Kills"0);
            
    ini_setInteger(pConfig,"Deaths"0);
            
    ini_setInteger(pConfig,"Money"0);

                
    ini_getInteger(pConfig,"Kills"pStats[playerid][Kills]);
               
    ini_getInteger(pConfig,"Deaths"pStats[playerid][Deaths]);
               
    ini_getInteger(pConfig,"Money"pStats[playerid][Money]);
          
    ini_closeFile(pConfig);
          
    SendClientMessage(playerid0xFFFFFF"[]: .");
            }
            else 
    SendClientMessage(playerid0xFFFFFF"[]:   ");
        } 
    public OnPlayerConnect!
    public OnPlayerDisconnect return 1;
    PHP :
     new pConfigpName[MAX_PLAYER_NAME], str[64];
         
    GetPlayerName(playeridpNamesizeof(pName));
         
    format(strsizeof(str), "%s.ini",pName);
        
    pConfig ini_openFile (str);
        if(
    pConfig == INI_OK)
        {
          
    ini_setInteger(pConfig,"Kills"pStats[playerid][Kills]);
            
    ini_setInteger(pConfig,"Deaths"pStats[playerid][Deaths]);
            
    ini_setInteger(pConfig,"Money"GetPlayerMoney(playerid));
            
    ini_closeFile(pConfig);
        }
        else print(
    "   '");
        return 
    1;

    public OnPlayerDeath ! ! /stats :
    PHP :
    pStats[killerid][Kills]++;
      
    pStats[playerid][Deaths]++; 
    pubic OnPlayerCommandText /stats :
    PHP :
    if (strcmp("/stats"cmdtexttrue7) == 0)
        {
            new 
    str[256];
            
    format(strsizeof(str), "[]: : %d, : %d, : %d"pStats[playerid][Kills], pStats[playerid][Deaths], GetPlayerMoney(playerid));
            
    SendClientMessage(playerid0xFFFFFFstr);
            return 
    1;
        } 
    +!
    Stunt !
    !
    !
  2. 10 c Andrey_Kiryuhin :

    legenda (21.11.2010), ReDDy ㋛ (25.11.2011), Ru[D]o (30.07.2011), shebelme (20.06.2011), sKeLeT (07.12.2011), Steve (27.09.2011), tankist (29.09.2011), Victor_Ananyev (19.06.2011), Vlad777 (24.01.2011), [H]ooligan[S] (19.11.2012)

  3. #2

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 
    mxINI!
    !
    !
    mxINI!
    mxINI Dini !
    DINI mxINI.
    ,, !
    mxINI
    1. .
    PHP :
    ini_createFile("//.ini"); //    .
    ini_openFile("//.ini"); //     .
    ini_closeFile(__); //      . 
    2. .
    PHP :
    ini_setString(__" """); //      .
    ini_setInteger(__" "123456 ); //       .
    ini_setFloat(__" "3.1416 ); //       . 
    3. .
    PHP :
    ini_getString(__" "__); //        .
    ini_getInteger(__" "__); //         .
    ini_getFloat(__" "__); //         . 
    4. .
    PHP :
    ini_removeKey(__" "); //      
    ini_getErrorInfo(_); //    ,   ,   . 
    !
    !
    enum pInfo !
    forward
    PHP :
    forward OnPlayerRegistered(playeridpassword[]); /*       */
    forward OnPlayerLogged(playeridpassword[]); /*      */
    forward OnPlayerSave(playerid); /*          */
    forward OnPlayerConnect2(playerid); /*   ,      . */ 
    public-
    PHP :
    public OnPlayerLogged(playeridpassword[])
    {
        new 
    string[255], PlayerName[40];
            
    GetPlayerName(playeridPlayerName40);
            
    format(string256"%s.ini"PlayerName);
        new 
    iniFile ini_openFile (string); /*   */
        
    ini_getString(iniFile"Password"string);  /*    */
        
    if(strcmp(stringpasswordtrue10) == 0)
            {  
    /*      */
            
    ini_getInteger(iniFile"Admin"Player[playerid][pAdmin]);  /*        */
            
    ini_getInteger(iniFile"Money"Player[playerid][pMoney]);  /*  -  */
            
    GivePlayerMoney(playeridPlayer[playerid][pMoney]);  /*   */
            
    ini_closeFile(iniFile);  /*   */
        
    } else {  /*         */
            
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT".""     """"");
            
    ini_closeFile(iniFile);  /*   */
        
    }
        return 
    1;

    public
    PHP :
    public OnPlayerRegistered(playeridpassword[])
    {
        new 
    string[255], PlayerName[40];
        
    GetPlayerName(playeridPlayerName40);
        
    format(string256"%s.ini"PlayerName);
        new 
    iniFile ini_createFile(string);  /*   */
        
    if(iniFile 0)
        
    iniFile ini_openFile(string); /*   */
        
    ini_setString(iniFile"Password"password); /*     */
        
    ini_setInteger(iniFile"Admin"0);  /*    */
        
    ini_setInteger(iniFile"Money"100);  /*     */
        
    ini_closeFile(iniFile);  /*   */
            
    OnPlayerLogged(playeridpassword);
        return 
    1;

    public
    PHP :
    public OnPlayerSave(playerid){
        
    Player[playerid][pMoney] = GetPlayerMoney(playerid); /*  -  */
        
    new string[255], PlayerNames[40];
         
    GetPlayerName(playeridPlayerNames40);
         
    format(string256"%s.ini"PlayerNames);
        new 
    iniFile ini_openFile (string); /*   */
        
    ini_setInteger(iniFile"Money"Player[playerid][pMoney]); /*  -    */
        
    ini_closeFile(iniFile); /*   */
        
    return 1;

    public OnDialogResponce
    PHP :
        if(dialogid == 0){
            if(
    response){
                if(!
    strlen(inputtext)){
                    
    ShowPlayerDialog(playerid0DIALOG_STYLE_INPUT"!     ."""""""); /*        */
                    
    return 1;
                }
                
    OnPlayerRegistered(playeridinputtext);
            }else{
                
    ShowPlayerDialog(playerid0DIALOG_STYLE_INPUT"!     ."""""""); /*    */
            
    }
            return 
    1;
        }
    //------------------------------------------------------------------------------
        
    if(dialogid == 1){
            if(
    response){
                if(!
    strlen(inputtext)){
                    
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT".""     """""); /*       */
                    
    return 1;
                }
                
    OnPlayerLogged(playeridinputtext);
            }else{
                
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT".""     """""); /*    */
            
    }
            return 
    1;
        } 

    PHP :
    public OnDialogResponse(playeriddialogidresponselistiteminputtext[]){
    //------------------------------------------------------------------------------
        
    if(dialogid == 0){
            if(
    response){
                if(!
    strlen(inputtext)){
                    
    ShowPlayerDialog(playerid0DIALOG_STYLE_INPUT"!     ."""""""); /*        */
                    
    return 1;
                }
                
    OnPlayerRegistered(playeridinputtext);
            }else{
                
    ShowPlayerDialog(playerid0DIALOG_STYLE_INPUT"!     ."""""""); /*    */
            
    }
            return 
    1;
        }
    //------------------------------------------------------------------------------
        
    if(dialogid == 1){
            if(
    response){
                if(!
    strlen(inputtext)){
                    
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT".""     """""); /*       */
                    
    return 1;
                }
                
    OnPlayerLogged(playeridinputtext);
            }else{
                
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT".""     """""); /*    */
            
    }
            return 
    1;
        }
    //------------------------------------------------------------------------------
        
    return 1;

  4. 4 c Andrey_Kiryuhin :

    shebelme (20.06.2011), Steve (27.09.2011), tankist (29.09.2011), Victor_Ananyev (19.06.2011)

  5. #3

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 

    PHP :
    public OnPlayerConnect2(playerid)
    {
            new 
    string[255], PlayerName[40];
            
    GetPlayerName(playeridPlayerName40);
            
    format(string256"%s.ini"PlayerName);
        if(
    fexist(string)) /*    (  )   */
            
    {
            
    ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"."""""""); /*        */
        
    }  else {
                     
    ShowPlayerDialog(playerid0DIALOG_STYLE_INPUT"."""""""); /*    ,     */
            
    }
        return 
    1;

    public OnPlayerDisconnect
    PHP :
    OnPlayerSave(playerid); /*       */ 
    !
    sa-mp.com
    !
    mxINI !
    Stunt- !
    Pawno-Info
  6. 7 c Andrey_Kiryuhin :

    Ejikin91 (24.06.2011), IncoGnitO (22.01.2011), Role[x] (07.01.2011), shebelme (20.06.2011), Steve (27.09.2011), tankist (26.09.2011), Victor_Ananyev (19.06.2011)

  7. #4

      Role[x]

    :
    :19.12.2010
    :21
    :0 [+/-] 
    , +
  8. #5

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 
  9. 2 c Andrey_Kiryuhin :

    Role[x] (07.01.2011), Steve (27.09.2011)

  10. #6

      IncoGnitO

    :
    :11.11.2010
    :251
    :22 [+/-] 
  11. #7

      Vlad777

    :
    :12.11.2010
    :131
    :0 [+/-] 
    .
  12. #8

      D_ReMax

    :
    :11.02.2011
    :7
    :0 [+/-] 
    , )
  13. #9

      TEKINQ

    :
    :11.02.2011
    :3
    :0 [+/-] 


    C:\SERVER\SA-MP\gamemodes\test.pwn(155) : error 017: undefined symbol "Player"
    C:\SERVER\SA-MP\gamemodes\test.pwn(155) : warning 215: expression has no effect
    C:\SERVER\SA-MP\gamemodes\test.pwn(155) : error 001: expected token: ";", but found "]"
    C:\SERVER\SA-MP\gamemodes\test.pwn(155) : error 029: invalid expression, assumed zero
    C:\SERVER\SA-MP\gamemodes\test.pwn(155) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.

    ini_getInteger(iniFile, "Admin", Player[playerid][pAdmin]); /* */


    TEKINQ; 11.02.2011 22:11.
  14. #10

      Andrey_Kiryuhin

    :
    :11.11.2010
    :.
    :515
    :153 [+/-] 
    ?

, : 10

256, , , amp, , , cmd, edm, , , files, , include, , , money, music forum, mxini, , , , , , pawno, php, playerid, stunt,

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