Pesquisa resultou em 3 ocorrências

por Um_Geek
27 Jun 2018, 17:24
Fórum: Scripts & Códigos
Tópico: Crescimento "quase" natural do cabelo do cj
Respostas: 11
Exibições: 2988
Gênero:

Crescimento "quase" natural do cabelo do cj

Junior_Djjr escreveu: ↑ Por que você colocou tab duplo em vez de único? Não entendi
O notepad++ deixa desta forma, mas só no code aqui do fórum.
por Um_Geek
27 Jun 2018, 10:40
Fórum: Scripts & Códigos
Tópico: Crescimento "quase" natural do cabelo do cj
Respostas: 11
Exibições: 2988
Gênero:

Crescimento "quase" natural do cabelo do cj

Eu não ia comentar sobre esta cadeia de IF já que ninguém disse nada, mas você pode ter problemas em códigos grandes com isto.
SpoilerAbrir
Por um tempo olhando cheguei a pensar que tinha elseifem gta3script :feel:

Código: Selecionar tudo

IF IS_PLAYER_WEARING 0 1 bald 
    GET_INT_STAT 134 (iDay)
    iDay += 3
    WHILE currDay < iDay 
        WAIT 0
        GET_INT_STAT 134 (currDay)
    ENDWHILE

    hair = 0
ELSE
    IF IS_PLAYER_WEARING 0 1 player_face
        GET_INT_STAT 134 (iDay)
        iDay += 3
        WHILE currDay < iDay 
            WAIT 0
            GET_INT_STAT 134 (currDay)
        ENDWHILE

        hair = 1
ELSE
    IF IS_PLAYER_WEARING 0 1 flattop
        GET_INT_STAT 134 (iDay)
        iDay += 3
        WHILE currDay < iDay 
            WAIT 0
            GET_INT_STAT 134 (currDay)
        ENDWHILE

        hair = 2
ELSE
    GOTO check
        ENDIF
    ENDIF
ENDIF

Dando umas tabulações ficou assim.

Código: Selecionar tudo

REPEAT 3 hair
	check:
	WAIT 5000
	IF IS_PLAYER_WEARING 0 1 bald 
		GET_INT_STAT 134 (iDay)
		iDay += 3
		WHILE currDay < iDay 
			WAIT 0
			GET_INT_STAT 134 (currDay)
		ENDWHILE
		hair = 0
	ELSE
		IF IS_PLAYER_WEARING 0 1 player_face
			GET_INT_STAT 134 (iDay)
			iDay += 3
			WHILE currDay < iDay 
				WAIT 0
				GET_INT_STAT 134 (currDay)
			ENDWHILE
			hair = 1
		ELSE
			IF IS_PLAYER_WEARING 0 1 flattop
				GET_INT_STAT 134 (iDay)
				iDay += 3
				WHILE currDay < iDay 
					WAIT 0
					GET_INT_STAT 134 (currDay)
				ENDWHILE
				hair = 2
			ELSE
				GOTO check
			ENDIF
		ENDIF
	ENDIF
	SWITCH hair
		CASE 0 
			GIVE_PLAYER_CLOTHES_OUTSIDE_SHOP 0 player_face head 1
			BREAK   
		CASE 1
			GIVE_PLAYER_CLOTHES_OUTSIDE_SHOP 0 flattop flattop 1
			BREAK
		CASE 2
			GIVE_PLAYER_CLOTHES_OUTSIDE_SHOP 0 afro afro 1
			BREAK
	ENDSWITCH
	BUILD_PLAYER_MODEL 0
ENDREPEAT
por Um_Geek
26 Jun 2018, 12:05
Fórum: Scripts & Códigos
Tópico: Crescimento "quase" natural do cabelo do cj
Respostas: 11
Exibições: 2988
Gênero:

Crescimento "quase" natural do cabelo do cj

Bem legal este mod.
Este SWITCH parece estar sobrando.

Voltar para “Crescimento "quase" natural do cabelo do cj”