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







VK: vk.com/sergey68

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

: strtok

1 10 27

  1. #1

      Andreq

    :
    :11.11.2010
    :46
    :20 [+/-] 

    strtok

    strtok , . ? .
    PHP :
    public OnPlayerCommandText(playeridcmdtext[])
    {
        new 
    tmp[255], string[255], cmd[255], idxgiveplayeridsendernamegiveplayer;
        
    cmd strtok(cmdtextidx);
        
    GetPlayerName(playeridsendernamesizeof(sendername));
        if(
    strcmp(cmd"/akill"true) == 0)
        {
            if(!
    IsPlayerAdmin(playerid)) return SendClientMessage(playerid0x919191FF"       .");
            
    tmp strtok(cmdtextidx);
            if(!
    strlen(tmp)) return SendClientMessage(playerid0x919191FF": \"/akill [ID]\"");
            
    giveplayerid strval(tmp);
            
    GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
            if(!
    IsPlayerConnected(giveplayerid))SendClientMessage(playerid0x919191FF"   ID  .");
            
    SetPlayerHealth(giveplayerid0); 
            
    format(stringsizeof(string), " %s[%i]  !"sendernameplayerid);
            
    SendClientMessage(giveplayerid0xE21D2CFFstring);
            
    format(stringsizeof(string), "  %s[%i]!"giveplayergiveplayerid);
            
    SendClientMessage(playerid0xE21D2CFFstring);
            return 
    1;
       }


    PHP :
    giveplayerid strval(tmp); 
    'giveplayerid', 'tmp'.
    PHP :
    if(!strlen(tmp)) return SendClientMessage(...); 
    'giveplayerid' ( /akill /akill ID)
    PHP :
    GetPlayerName(playeridsendernamesizeof(sendername));
    GetPlayerName(giveplayeridgiveplayersizeof(giveplayer)); 
    (.: "Nickname1(ID:4) Nickname2(ID:2)") 2 . P.S.: 'giveplayerid' 'tmp'.

    ? :
    PHP :
    if(strcmp(cmd"/ban"true) == 0)
    {
        if(!
    IsPlayerAdmin(playerid)) 
        return 
    SendClientMessage(playerid0x919191FF"  ."); //   
        
    tmp strtok(cmdtextidx); //      strtok   'tmp'
        
    if(!strlen(tmp)) return SendClientMessage(playerid0x919191FF": /ban [id]"); //  ID   
        
    giveplayerid strval(tmp); //    'giveplayerid'
        
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid0x919191FF"   ID  ."); //  'giveplayerid'  
        
    Ban(giveplayerid);
        return 
    1;


    PHP :
    if(!IsPlayerAdmin(playerid)) 
    RCON , ,
    PHP :
    tmp strtok(cmdtextidx); 
    strtok 'tmp'
    PHP :
    if(!strlen(tmp)) 
    , ,
    PHP :
    giveplayerid strval(tmp); 
    'giveplayerid' tmp
    PHP :
    if(!IsPlayerConnected(giveplayerid)) 
    'giveplayerid' , ,
    PHP :
    Ban(giveplayerid); 
    , . :)

    MazaHACKa
    http://wiki.sa-mp.com
    Red_Ronnie; 10.08.2011 19:42.
  2. 9 c Andreq :

    Andrey_Kiryuhin (31.03.2011), Diman4ik (03.04.2011), Justin (07.01.2011), krik (01.12.2010), 210 (06.01.2011), Samuel_Myasniko (19.03.2011), Sergey (08.03.2011), [D]em[O]n (02.02.2011), __oFFmaN :3 (27.01.2013)

  3. #2

      210

    :
    :24.12.2010
    :204
    :19 [+/-] 
    .
    210; 21.05.2013 22:42.
    ( / , , ).
    Skype: sancheus210 ( : " pawn").
  4. #3

      Geshan

    :
    :27.01.2011
    :5
    :0 [+/-] 
  5. #4

      [D]em[O]n

    :
    :02.02.2011
    :186
    :6 [+/-] 
    , +
  6. #5

      Alfred_Nobel

    :
    :06.02.2011
    :
    :141
    :7 [+/-] 
    !
  7. #6

      Scripter

    :
    :18.03.2011
    :
    :34
    :0 [+/-] 
  8. #7

      CycJluk

    :
    :23.03.2011
    :56
    :0 [+/-] 
    )
  9. #8

      Last

    :
    :28.03.2011
    :
    :992
    :376 [+/-] 
    , pawno : /otp id id'
    if(strcmp(cmdtext, "/otp", true, 10) == 0)
    {
    if(!IsPlayerAdmin(playerid))
    giveplayerid = strval(tmp);
    SetPlayerPos(giveplayerid, 2574.30, -2410.89, 22.49 );
    }
    else
    {
    SendClientMessage(playerid, 0xFF000099, " ");
    }
  10. #9

      Mr. Oscar

    :
    :21.03.2011
    :
    :432
    :65 [+/-] 

    PHP :
        if(strcmp(cmd"/otp"true10) == 0)
        {
            if(!
    IsPlayerAdmin(playerid))
            {
                
    SendClientMessage(playeridCOLOR_GRAD1"   *** ");
                return 
    1;
            }
             if(
    IsPlayerConnected(playerid))
             {
                
    tmp strtok(cmdtextidx);
                if(!
    strlen(tmp))
                {
                    
    SendClientMessage(playeridCOLOR_GRAD1" : /otp [ID]");
                    return 
    1;
                }
                
    giveplayerid strval(tmp);
                
    SetPlayerPos(giveplayerid2574.30, -2410.8922.49 );
            }
            return 
    1;
        } 
    +
  11. #10

      Last

    :
    :28.03.2011
    :
    :992
    :376 [+/-] 
    (
    PHP :
    rror 017undefined symbol "cmd"
     
    error 017undefined symbol "strtok"
     
    error 033: array must be indexed (variable "tmp"

, : 2

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