[Ajuda] Minhas Duvidas...
#1

galera me ajudem com esses warings:
pawn Код:
warning 213: tag mismatch
warning 202: number of arguments does not match definition
Linhas dos warings:

pawn Код:
//
    new textocasas[6][50];
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            //new textocasas[5][50];
            pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            //textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
            textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
            format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
            textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.4,10.0,0,1);
            format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
            textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.5,10.0,0,1);
            format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
            textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.6,10.0,0,1);
            textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.7,20.0,0);
        }
    }
outra duvida que eu tenho й como eu crio um comando /respawn que mande os veiculos desocupados para o local de origem deles, eu criei este comando:

pawn Код:
//
    if(strcmp(cmd, "/respawn", true) == 0)
    {
        //new carrosalvo[2000] = 0;
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            for(new i=0;i<MAX_VEHICLES;i++)
            {
                /*if(IsVehicleOccupied(i) == 0)
                {
                    SetVehicleToRespawn(i);
                    Gas[i] = 100;
                }*/

                for(new a = 0; a <= MAX_PLAYERS; a++)
                {
                    if(!IsPlayerInVehicle(a,i))
                    {
                        SetVehicleToRespawn(i);
                        Gas[i] = 100;
                    }
                }
            }
            SendClientMessageToAll(0xDEEE20FF, "Respawn!");
            return 1;
        }
        else
        {
            SendClientMessage(playerid,0xDEEE20FF,"Vocк nгo й um administrador.");
        }
        return 1;
    }
porem quando eu digito /respawn todos os carros voltam para o local de origem inclusive aqueles que tem alguem dentro. Ajudem ai pf
des de ja obrigado
Reply
#2

Arrumei pra vocк, isto deve resolver o seu problema

pawn Код:
new textocasas[6][sizeof(HouseInfo)];
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            //new textocasas[5][50];
            pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            //textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
            textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
            textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
            textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
        }
    }

Quanto aos negуcios do respawn, use o Search ! : https://sampforum.blast.hk/showthread.php?tid=229824


Espero ter ajudado
Reply
#3

os warings continuam:

pawn Код:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
Reply
#4

pawn Код:
new textocasas[6][sizeof(HouseInfo)];
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            //new textocasas[5][50];
            pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            //textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
            textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
            textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
            textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
            textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],60.0,0);
        }
    }
Reply
#5

Todas elas deram waring
Reply
#6

pawn Код:
new textocasas[6][50];
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            //new textocasas[5][50];
            pickupcasa[h] = AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
            //textocasas[1][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,10.0,0,1);
            textocasas[1][h] = Create3DTextLabel("Texto 1",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.3,50.0, -1, 0);
            format(string, sizeof(string), "%s",HouseInfo[h][hDiscription]);
            textocasas[2][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.4,50.0, -1, 0);
            format(string, sizeof(string), "%d",HouseInfo[h][hValue]);
            textocasas[3][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.5,50.0, -1, 0);
            format(string, sizeof(string), "%d",HouseInfo[h][hLevel]);
            textocasas[4][h] = Create3DTextLabel(string,0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.6,50.0, -1, 0);
            textocasas[5][h] = Create3DTextLabel("Texto 6",0xFFFFFFFF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]-0.7,50.0, -1, 0);
        }
    }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)