[Ajuda] public OnGameModeInit
#1

O Codigo abaixo que ta na minha public ta bloqueando todos os outros codigos que tao abaixo dele sera porque? tem alguma chave errada ou oque pode ser?.
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < sizeof(CreatedCars); i++)
    {
        CreatedCars[i] = 0;
    }
    for(new i = 0; i <= sizeof(Peds)-1; i++)
    {
        AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
    }
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            AddStaticPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            format(gstring, sizeof(gstring), "{00FF00}Casa a Venda!\nPreзo: R$%d\nTipo De Casa: %s\nLevel Necess?rio: %d\nPara comprar digite /comprarcasa",HouseInfo[h][hValue],HouseInfo[h][hDiscription],HouseInfo[h][hLevel]);
            HouseLabel[h] = Create3DTextLabel(gstring,Amarelo3D,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            AddStaticPickup(1318, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            if(HouseInfo[h][hRentabil] == 0)
            {
                format(gstring, sizeof(gstring), "{00FF00}Dono da Casa: %s\nPre?o do Aluguel: R$%d\nTipo De Casa: %s\nPara Alugar, Digite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hDiscription]);
                HouseLabel[h] = Create3DTextLabel(gstring,Amarelo3D,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
            }
            else
            {
                format(gstring, sizeof(gstring), "{00FF00}Dono da Casa: %s\nPre?o do Aluguel: R$%d\nTipo De Casa: %s\nPara Alugar, Digite /alugarquarto para alugar um quarto",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hDiscription]);
                HouseLabel[h] = Create3DTextLabel(gstring,Amarelo3D,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.5,15.0,0);
            }
        }
    }
    for(new h = 0; h < sizeof(BizzInfo); h++)
    {
        if(BizzInfo[h][bOwned] == 0)
        {
            AddStaticPickup(1272, 23, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            format(gstring, sizeof(gstring), "%s\nEsta Empresa esta a Venda\nValor: R$%d Nivel: %d\nPara comprar digite /compraremp",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
            BizzLabel[h] = Create3DTextLabel(gstring,Verde3D,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
        }
        if(BizzInfo[h][bOwned] == 1)
        {
            AddStaticPickup(1318, 23, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
            format(gstring, sizeof(gstring), "%s\nDono: %s\nExtorcao: %s\nTaxa Entrada: R$%d\nPara Entrar, Aperte F",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost]);
            BizzLabel[h] = Create3DTextLabel(gstring,Verde3D,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
        }
    }
    for(new h = 0; h < sizeof(SBizzInfo); h++)
    {
        if(SBizzInfo[h][sbOwned] == 0)
        {
            AddStaticPickup(1272, 23, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            format(gstring, sizeof(gstring), "%s\nEsta Empresa esta a Venda\nValor: R$%d Nivel: %d\nPara comprar digite /compraremp",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
            SBizzLabel[h] = Create3DTextLabel(gstring,Verde3D,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);
        }
        if(SBizzInfo[h][sbOwned] == 1)
        {
            AddStaticPickup(1318, 23, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
            format(gstring, sizeof(gstring), "%s\nDono: %s\nExtorcao: %s\nTaxa Entrada: R$%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
            SBizzLabel[h] = Create3DTextLabel(gstring,Verde3D,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+0.5,20.0,0);
          }
    }
    return true;
}
Reply


Messages In This Thread
public OnGameModeInit - by Freak@ - 31.07.2013, 00:09
Re: public OnGameModeInit - by Juniiro3 - 31.07.2013, 00:15
Re: public OnGameModeInit - by Freak@ - 31.07.2013, 00:17
Re: public OnGameModeInit - by Merida - 31.07.2013, 00:18
Re: public OnGameModeInit - by Juniiro3 - 31.07.2013, 00:20
Re: public OnGameModeInit - by Freak@ - 31.07.2013, 00:26
Re: public OnGameModeInit - by WLSF - 31.07.2013, 00:31
Re: public OnGameModeInit - by Freak@ - 31.07.2013, 00:33

Forum Jump:


Users browsing this thread: 3 Guest(s)