Jump to content
  • 0

Intrebare Case Label


Alexica721

Question

Buna ziua astazi am o commanda

[pawn]CMD:skill( playerid , params [ ] )

{

    if ( sscanf ( params , "i" , params [ 0 ] ) ) return SendClientMessage ( playerid , 0xFFFFFFFF , "USAGE:/skill [1-2]" ) ;

        switch ( params [ 0 ] )

    {

        case 1:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

        case 2:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

}

    return ( 1 ) ;

}[/pawn]

Intrebarea e daca la case 1 as putea sa pun cumva sa imi seteze skill level-ul si de uzi

Adik sa am la case 1

SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1); si

SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);

M-am lasat de comunitatea sa-mp.ro

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

[pawn] case 1:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1), SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);[/pawn]

Mi-ai luat-o incainte :)), vroiam sa-i zic sa puie asa:

[pawn]

CMD:skill( playerid , params [ ] )

{

    if ( sscanf ( params , "i" , params [ 0 ] ) ) return SendClientMessage ( playerid , 0xFFFFFFFF , "USAGE:/skill [1-2]" ) ;

        switch ( params [ 0 ] )

    {

        case 1:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1),

                  SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);

        case 2:    SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);

}

    return ( 1 ) ;

}

[/pawn]

Dar prea tarziu...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.