[Ajuda] Tabulaзгo de cуdigo.
#1

Bom pessoal tou codando meu GM ai comecei colocar as linhas dele um embaixo do outros tipo assim

PHP код:
    if(IsPlayerConnected(i))
    {
    if(
PlayerPaintballing[i] != 0)
    {
    
ResetPlayerWeaponsEx(i);
    
GivePlayerWeapon(i29999);
    
GivePlayerWeapon(i25999);
    
GivePlayerWeapon(i31999);
    
SetPlayerArmour(i100.0);
    
SetPlayerHealth(i100.0);
    
SetPlayerInterior(i,10);
    
TogglePlayerControllable(i1);
    
SendClientMessage(iCOLOR_YELLOW"O Paintball comeзou, 5 minutos para acabar.");
    
PlayerPlaySound(i10570.00.00.0);
    }
    }
    }
    
SetTimer("PaintballEnded"3000000);
    return 
1;
    }
    public 
SendVIPMessage(colorstring[])
    {
    for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerConnected(i))
    {
    if(
PlayerInfo[i][pVIP] >= 1)
    {
    
SendClientMessage(icolorstring);
    }
    }
    }
    } 
Bom ai eu fis 4751 linhas desse geito coloquei as letras um embaixo do outros ai tudo bem tipo
Meu gm tem 46701 linhas e vai demorar muito atй eu fazer isso em todas as linhas ta tudo assim agr

PHP код:
                    WantedPoints[i] = 0;
                      
SetPlayerWantedLevel(i0);
                    
PlayerInfo[i][pJailTime] = 600;
                    
format(gstringsizeof(gstring), "Vocк foi preso por %d segundos."PlayerInfo[i][pJailTime]);
                    
SendClientMessage(iCOLOR_LIGHTBLUEgstring);
                }
                new 
playername2[MAX_PLAYER_NAME];
                
GetPlayerName(iplayername2sizeof(playername2));
                
Conta PlayerInfo[i][pConta];
                new 
key PlayerInfo[i][pPHousekey];
                if(
key != 255)
                {
                    
rent HouseInfo[key][hRent];
                    if(
strcmp(playername2HouseInfo[key][hOwner], true) == 0)
                    {
                        
rent 0;
                    }
                    else if(
rent GetPlayerMoneyEx(i))
                    {
                        
PlayerInfo[i][pPHousekey] = 255;
                        
SendClientMessage(iCOLOR_WHITE"Vocк foi expulso(a).");
                        
rent 0;
                    }
                    
HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
                }
                new 
tmpintrate;
                if(
PlayerInfo[i][pVIP] == 1) { tmpintrate 3; }
                else { 
tmpintrate 1; }
                if(
PlayerInfo[i][pPayDay] >= 3)
                {
                    
Tax += TaxValue;//Shorld work for every player online
                    
PlayerInfo[i][pConta] -= TaxValue;
                    new 
checks PlayerInfo[i][pSalario];
                    new 
ebill = (PlayerInfo[i][pConta]/30000)*(PlayerInfo[i][pLevel]);
                    
ConsumingMoney[i] = 1;
                    
GivePlayerMoneyEx(ichecks);
                    if(
PlayerInfo[i][pConta] > 0)
                    {
                        
PlayerInfo[i][pConta] -= ebill;
                        
SBizzInfo[4][sbTill] += ebill;
                    }
                    else
                    {
                        
ebill 0;
                    }
                    
interest = (PlayerInfo[i][pConta]/1000)*(tmpintrate);
                    
PlayerInfo[i][pExp]++;
                    
PlayerPlayMusic(i);
                    
PlayerInfo[i][pConta] = Conta+interest;
                    
SendClientMessage(iCOLOR_WHITE"|______________ Pagamento ______________|");
                    
format(gstringsizeof(gstring), "  Salбrio: R$%d   Imposto: -R$%d"checksTaxValue);
                    
SendClientMessage(iCOLOR_GRAD1gstring);
                    
SendClientMessage(iCOLOR_GRAD1"  Mйdico: R$300");
                    if(
PlayerInfo[i][pPHousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                    {
                        
format(gstringsizeof(gstring), "  Energia: -R$%d"ebill);
                        
SendClientMessage(iCOLOR_GRAD1gstring);
                    }
                    
format(gstringsizeof(gstring), "  Banco: R$%d"Conta);
                    
SendClientMessage(iCOLOR_GRAD1gstring);
                    
format(gstringsizeof(gstring), "  Juros: 0.%d  por cento",tmpintrate);
                    
SendClientMessage(iCOLOR_GRAD2gstring);
                    
SendClientMessage(iCOLOR_GRAD4"|_______________________________________|");
                    
format(gstringsizeof(gstring), "  Novo extrato: R$%d"PlayerInfo[i][pConta]);
                    
SendClientMessage(iCOLOR_GRAD5gstring);
                    
format(gstringsizeof(gstring), "  Aluguel: -R$%d"rent);
                    
SendClientMessage(iCOLOR_GRAD5gstring);
                    
PlayerPlaySound(i11850.00.00.0);
                    
format(gstringsizeof(gstring), "~y~-==- ~g~ BMG Salario ~y~ -==-");
                    
GameTextForPlayer(igstring50001);
                    
GivePlayerMoneyEx(i,- 300);
                    
rent 0;
                    
PlayerInfo[i][pPayDay] = 0;
                    
PlayerInfo[i][pSalario] = 0;
                    
PlayerInfo[i][pConnectTime] += 1;
                    
pban[i] = 0;
                    if(
PlayerInfo[i][pEmprego] > 0)
                    {
                        if(
PlayerInfo[i][pContractTime] < 25)
                        {
                            
PlayerInfo[i][pContractTime] ++;
                        }
                    }
                }
                else
                {
                    
SendClientMessage(iCOLOR_LIGHTRED"* Vocк nгo jogou tempo suficiente para receber salбrio!.");
                }
            }
        }
        new 
lolbagui;
        
lolbagui PlayerInfo[i][pExp];
        new 
nxtlevel PlayerInfo[i][pLevel]+1;
        if(
lolbagui >= nxtlevel*levelexp)
        {
            
GameTextForPlayer(i"~g~Respeito Adquirido!~n~~r~Digite /comprarnivel!"50001);
        }
    } 
Alguйm sabe se tem um gerador na net ou algum tipo de programa pra min termina isso rapido por que meus braзo ta doendo d+ eu virei madrugada fazendo isso.
Reply
#2

Criar Uma gm nao e tarefa facil, Boa sorte amigo.
Reply
#3

Quote:
Originally Posted by SinCityRoleplay
Посмотреть сообщение
Criar Uma gm nao e tarefa facil, Boa sorte amigo.
Tб certo, vou pagar precisa ter muita forзa de vontade d qui pra frente !
Reply
#4

Vocк tб querendo tirar a identaзгo dos cуdigos? Nгo entendi muito bem...
Reply
#5

Aqui tem: https://sampforum.blast.hk/showthread.php?tid=361455

Й um Identador/Tabulador e Analisador de Cуdigos.
Reply
#6

Alguйm ?
Reply
#7

Caso queira remover a tabulaзгo de determinado cуdigo, selecione o trecho, e aperte as teclas SHIFT + TAB, caso queira adicionar selecione o trecho do cуdigo e pressione a tecla TAB.
Reply
#8

http://jsbeautifier.org/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)