[Ajuda] AjuDa Entrada , Locais
#1

pawn Код:
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : warning 217: loose indentation
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : error 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : warning 215: expression has no effect
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : error 001: expected token: ";", but found "if"
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Allisson\Desktop\[GM] Brasil Knight Games\gamemodes\BKG.pwn(59) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


[pawn] //==============================================================================
//Entrada Interiores
//==============================================================================
   else if(PlayerToPoint(3.0, playerid,1928.5828,-1776.3160,13.5469))
   {
   GameTextForPlayer(playerid, "~w~Entrada ~r~27/7  (1)", 5000, 1);
   SetPlayerInterior(playerid, 17);
   SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
   PlayerInfo[playerid][pInt] = 17;
   SetPlayerVirtualWorld(playerid, 0);
   }

    return 1;
}
[/pawn]
Reply
#2

pawn Код:
else if(PlayerToPoint, 3.0, playerid,1928.5828,-1776.3160,13.5469)
   {
   GameTextForPlayer(playerid, "~w~Entrada ~r~27/7  (1)", 5000, 1);
   SetPlayerInterior(playerid, 17);
   SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
   PlayerInfo[playerid][pInt] = 17;
   SetPlayerVirtualWorld(playerid, 0);
   }
Poste algumas linhas acima desse cуdigo.
Reply
#3

pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    SetGameModeText("BKG RPG:Brasil");
    AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddStaticVehicleEx(520,2037.3000500,1364.1999500,11.7000000,0.0000000,-1,-1,60000); //Hydra
    AddStaticVehicleEx(520,2037.3000500,1350.0999800,11.7000000,0.0000000,-1,-1,60000); //Hydra
    AddStaticVehicleEx(522,2024.6999500,1338.0999800,10.5000000,0.0000000,6,6,60000); //NRG-500
    AddStaticVehicleEx(522,2026.0999800,1338.1999500,10.5000000,0.0000000,0,0,60000); //NRG-500
//==============================================================================
//Pickup Entradas
//==============================================================================
    AddStaticPickup(1318, 23, 1928.5828,-1776.3160,13.5469); //  27/7 (1)
    AddStaticPickup(1247, 23, 919.4675,-1252.2362,16.2109);  //  Policia Civil
    AddStaticPickup(1247, 23, 325.5668,-1514.7399,36.0325);  //  Bope
    AddStaticPickup(1247, 23, -516.1298,-539.2330,25.5234);  //  Policia Federal
    AddStaticPickup(1247, 23, -1366.4832,500.9799,11.1953);  //  Exercito
    AddStaticPickup(1318, 23, -1676.1521,432.2154,7.1797);   //  27/7 (2)
    AddStaticPickup(1318, 23, -78.3887,-1169.9348,2.1354);   //  27/7 (3)
    AddStaticPickup(1247, 23, 1374.1255,404.9712,19.9555);   //  Interpol
    AddStaticPickup(1318, 23, 1374.8954,469.2785,20.1810);   //  27/7 (4)
    AddStaticPickup(1318, 23, 1481.0358,-1772.3134,18.7958); //  Prefeitura
    AddStaticPickup(1318, 23, 1411.5427,-1699.5504,13.5395); //  Centro De Licencas
    AddStaticPickup(1318, 23, 1498.3643,-1580.5143,13.5498); //  Restaurante
    AddStaticPickup(1318, 23, 952.5464,-909.1096,45.7656);   //  Los Aztecas
    AddStaticPickup(1318, 23, 1154.9427,-1180.8513,32.8187); //  Ballas
    AddStaticPickup(1318, 23, 2807.9810,-1190.8875,25.3436); //  Los Vagos
    AddStaticPickup(1318, 23, 2140.9282,-1801.9103,16.1475); //  Comando Vermelho
    AddStaticPickup(1318, 23, 1497.0023,-687.8923,95.5633);  //  Cosa Nostra
    AddStaticPickup(1318, 23, 691.5784,-1275.9432,13.5607);  //  Yakuza
    AddStaticPickup(1318, 23, 681.6262,-473.3458,16.5363);   //  Sons
    AddStaticPickup(1318, 23, 2256.7324,-44.6466,26.8834);   //  Mayans
    AddStaticPickup(1318, 23, 1925.5369,170.0411,37.2813);   //  Cativeiro (1)
    AddStaticPickup(1318, 23, 1566.8350,23.2496,24.1641);    //  Cativeiro (2)
    AddStaticPickup(1318, 23, 1106.5464,-299.7361,74.5391);  //  Al'Qaeda
    AddStaticPickup(1318, 23, -49.8359,-269.3634,6.6332);    //  Taliban
    AddStaticPickup(1318, 23, 649.3259,-1353.9972,13.5470);  //  Reportes
    AddStaticPickup(1318, 23, 031.8668,-1435.2681,13.5546);  //  Mecanicos
    AddStaticPickup(1318, 23, 1172.0768,-1323.3262,15.4029); //  Samu
    AddStaticPickup(1318, 23, 1791.8473,-1163.1223,23.8281); //  Loja De Arma (1)
    AddStaticPickup(1318, 23, 1070.8407,-1868.4528,13.5469); //  Loja De Arma (2)
    AddStaticPickup(1318, 23, 1144.0786,-1521.2854,15.7969); //  Loja De Arma (3)
    AddStaticPickup(1318, 23, 2324.3596,-1218.8455,27.9766); //  Hitmans
//==============================================================================
//Pickup Mapa
//==============================================================================






//==============================================================================
//Entrada Interiores
//==============================================================================
   else if(PlayerToPoint(3.0, playerid,1928.5828,-1776.3160,13.5469))
   {
   GameTextForPlayer(playerid, "~w~Entrada ~r~27/7  (1)", 5000, 1);
   SetPlayerInterior(playerid, 17);
   SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
   PlayerInfo[playerid][pInt] = 17;
   SetPlayerVirtualWorld(playerid, 0);
   }

    return 1;
}
Reply
#4

Acho que nгo entendi o sentido de usar um else if aн '-'
Reply
#5

como faзo para arrumar isso ? para o player entrar no interior
Reply
#6

Faзa um comando para cada interior com suas coordenadas entгo...

Exemplo do que por dentro do comando..
pawn Код:
if(PlayerToPoint(3.0, playerid,1928.5828,-1776.3160,13.5469))
            {
                SendClientMessage(playerid, -1, "[ERRO] Vocк nгo no local correto .");
                SetPlayerInterior(playerid, 17); // Id do interior
                return 1;
            }
Reply
#7

nгo deu certo
Reply
#8

aaaaaaaaaa alguem me ajuda
Reply
#9

Alguem ?
Reply
#10

Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    SetGameModeText("BKG RPG:Brasil");
    AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddStaticVehicleEx(520,2037.3000500,1364.1999500,11.7000000,0.0000000,-1,-1,60000); //Hydra
    AddStaticVehicleEx(520,2037.3000500,1350.0999800,11.7000000,0.0000000,-1,-1,60000); //Hydra
    AddStaticVehicleEx(522,2024.6999500,1338.0999800,10.5000000,0.0000000,6,6,60000); //NRG-500
    AddStaticVehicleEx(522,2026.0999800,1338.1999500,10.5000000,0.0000000,0,0,60000); //NRG-500
//==============================================================================
//Pickup Entradas
//==============================================================================
    AddStaticPickup(1318, 23, 1928.5828,-1776.3160,13.5469); //  27/7 (1)
    AddStaticPickup(1247, 23, 919.4675,-1252.2362,16.2109);  //  Policia Civil
    AddStaticPickup(1247, 23, 325.5668,-1514.7399,36.0325);  //  Bope
    AddStaticPickup(1247, 23, -516.1298,-539.2330,25.5234);  //  Policia Federal
    AddStaticPickup(1247, 23, -1366.4832,500.9799,11.1953);  //  Exercito
    AddStaticPickup(1318, 23, -1676.1521,432.2154,7.1797);   //  27/7 (2)
    AddStaticPickup(1318, 23, -78.3887,-1169.9348,2.1354);   //  27/7 (3)
    AddStaticPickup(1247, 23, 1374.1255,404.9712,19.9555);   //  Interpol
    AddStaticPickup(1318, 23, 1374.8954,469.2785,20.1810);   //  27/7 (4)
    AddStaticPickup(1318, 23, 1481.0358,-1772.3134,18.7958); //  Prefeitura
    AddStaticPickup(1318, 23, 1411.5427,-1699.5504,13.5395); //  Centro De Licencas
    AddStaticPickup(1318, 23, 1498.3643,-1580.5143,13.5498); //  Restaurante
    AddStaticPickup(1318, 23, 952.5464,-909.1096,45.7656);   //  Los Aztecas
    AddStaticPickup(1318, 23, 1154.9427,-1180.8513,32.8187); //  Ballas
    AddStaticPickup(1318, 23, 2807.9810,-1190.8875,25.3436); //  Los Vagos
    AddStaticPickup(1318, 23, 2140.9282,-1801.9103,16.1475); //  Comando Vermelho
    AddStaticPickup(1318, 23, 1497.0023,-687.8923,95.5633);  //  Cosa Nostra
    AddStaticPickup(1318, 23, 691.5784,-1275.9432,13.5607);  //  Yakuza
    AddStaticPickup(1318, 23, 681.6262,-473.3458,16.5363);   //  Sons
    AddStaticPickup(1318, 23, 2256.7324,-44.6466,26.8834);   //  Mayans
    AddStaticPickup(1318, 23, 1925.5369,170.0411,37.2813);   //  Cativeiro (1)
    AddStaticPickup(1318, 23, 1566.8350,23.2496,24.1641);    //  Cativeiro (2)
    AddStaticPickup(1318, 23, 1106.5464,-299.7361,74.5391);  //  Al'Qaeda
    AddStaticPickup(1318, 23, -49.8359,-269.3634,6.6332);    //  Taliban
    AddStaticPickup(1318, 23, 649.3259,-1353.9972,13.5470);  //  Reportes
    AddStaticPickup(1318, 23, 031.8668,-1435.2681,13.5546);  //  Mecanicos
    AddStaticPickup(1318, 23, 1172.0768,-1323.3262,15.4029); //  Samu
    AddStaticPickup(1318, 23, 1791.8473,-1163.1223,23.8281); //  Loja De Arma (1)
    AddStaticPickup(1318, 23, 1070.8407,-1868.4528,13.5469); //  Loja De Arma (2)
    AddStaticPickup(1318, 23, 1144.0786,-1521.2854,15.7969); //  Loja De Arma (3)
    AddStaticPickup(1318, 23, 2324.3596,-1218.8455,27.9766); //  Hitmans
//==============================================================================
//Pickup Mapa
//==============================================================================






//==============================================================================
//Entrada Interiores
//==============================================================================
for(new playerid =0; playerid < GetMaxPlayers(); playerid++){
   if(PlayerToPoint(3.0, playerid,1928.5828,-1776.3160,13.5469))
   {
   GameTextForPlayer(playerid, "~w~Entrada ~r~27/7  (1)", 5000, 1);
   SetPlayerInterior(playerid, 17);
   SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
   PlayerInfo[playerid][pInt] = 17;
   SetPlayerVirtualWorld(playerid, 0);
   }

    return 1;
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)