[Include] s_utils.inc - Adiзгo de novas func. para scripting
#5

Quote:
Originally Posted by Sky_.
Посмотреть сообщение
Muito bom!
Quote:
Originally Posted by death1
Посмотреть сообщение
ъtil
Quote:
Originally Posted by Jason`
Посмотреть сообщение
Enfim, й bem ъtil. Parabйns.
Obrigado.

Quote:
Originally Posted by Jason`
Посмотреть сообщение
Sу uma dica:

pawn Код:
stock IsPlayerSpectating(playerid) {
        return (GetPlayerState(playerid) == PLAYER_STATE_SPECTATING) ? 1 : 0; }
 
/*----------------------------------------------------------------------------*\
        Funзгo:
                - Verificar se й uma skin vбlida.
 
        Params:
                - skin: ID da skin.
 
        Retorna:
                - 1 se a skin for vбlida.
                - 0 se a skin for invбlida.
\*----------------------------------------------------------------------------*/

stock IsValidSkin(skinid) {
        return  (skinid != 74) ? 1 : 0; }
Nгo era necessбria a operaзгo ternбria, bastava retornar a condicional.
Verdade, eu estava usando operador ternбrio em outros cуdigos e acabei usando aн tambйm, bom saber que tem gente que presta atenзгo no cуdigo, valeu.
Reply


Messages In This Thread
s_utils.inc - Adiзгo de novas func. para scripting - by Larceny - 27.11.2012, 13:54
Re: s_utils.inc - Adiзгo de novas func. para scripting - by Sky™ - 27.11.2012, 14:35
Re: s_utils.inc - Adiзгo de novas func. para scripting - by death1 - 27.11.2012, 17:04
Re: s_utils.inc - Adiзгo de novas func. para scripting - by Jason` - 27.11.2012, 17:57
Re: s_utils.inc - Adiзгo de novas func. para scripting - by Larceny - 27.11.2012, 18:28
Logged in as Japa3D xD - by JapaN* - 27.11.2012, 18:59
Re: s_utils.inc - Adiзгo de novas func. para scripting - by paulor - 27.11.2012, 19:35

Forum Jump:


Users browsing this thread: 3 Guest(s)