Duda/Ayuda
#1

Hola bueno miren hise un map. y le meti carros mi duda es como meterlos ahora al server, el codigo de los carros es el seguiente

pawn Код:
<map edf:definitions="editor_main">
  <vehicle id="vehicle (Hydra) (1)" paintjob="3" model="520" plate="4FPG VZD" interior="0" dimension="0" color="4,2,0,0" posX="278.33117675781" posY="1949.4387207031" posZ="18.560199737549" rotX="0.002197265625" rotY="0" rotZ="281.91833496094" />
  <vehicle id="vehicle (Hydra) (2)" paintjob="3" model="520" plate="7AM7 152" interior="0" dimension="0" posX="278.07650756836" posY="1961.6715087891" posZ="18.560199737549" rotX="0" rotY="0" rotZ="271.26147460938" upgrades="1010,1025" />
  <vehicle id="vehicle (Hydra) (3)" paintjob="3" model="520" plate="AC5C TB5" interior="0" dimension="0" color="4,81,80,32" posX="277.29913330078" posY="1996.3435058594" posZ="18.560199737549" rotX="0" rotY="0" rotZ="262.99475097656" upgrades="1078" />
  <vehicle id="vehicle (Hydra) (4)" paintjob="3" model="520" plate="RZDB 3US" interior="0" dimension="0" color="4,81,80,32" posX="275.8330078125" posY="1980.9296875" posZ="18.560199737549" rotX="0" rotY="0" rotZ="281.98608398438" upgrades="1078" />
  <vehicle id="vehicle (Patriot) (2)" paintjob="3" model="470" plate="CLM2 6FH" interior="0" dimension="0" color="83,1,0,0" posX="273.8916015625" posY="2016.98046875" posZ="17.700178146362" rotX="0" rotY="0" rotZ="272.99926757813" />
  <vehicle id="vehicle (Patriot) (3)" paintjob="3" model="470" plate="J51K 1CO" interior="0" dimension="0" color="83,1,0,0" posX="273.1962890625" posY="2021.70703125" posZ="17.700178146362" rotX="0" rotY="0" rotZ="272.99926757813" />
  <vehicle id="vehicle (Patriot) (4)" paintjob="3" model="470" plate="Y5VK 5M0" interior="0" dimension="0" color="83,1,0,0" posX="272.5390625" posY="2026.814453125" posZ="17.700178146362" rotX="0" rotY="0" rotZ="272.99926757813" />
  <vehicle id="vehicle (Maverick) (1)" paintjob="3" model="487" plate="PM65 YKD" interior="0" dimension="0" posX="371.34457397461" posY="1925.0609130859" posZ="21.06254196167" rotX="0" rotY="0" rotZ="91.309326171875" />
  <vehicle id="vehicle (Cargobob) (1)" paintjob="3" model="548" plate="BIDA U5E" interior="0" dimension="0" posX="373.05892944336" posY="1961.2648925781" posZ="20.764274597168" rotX="0" rotY="0" rotZ="85.354370117188" />
  <vehicle id="vehicle (Hunter) (1)" paintjob="3" model="425" plate="T92V 32C" interior="0" dimension="0" posX="253.10813903809" posY="2047.5871582031" posZ="18.491624832153" rotX="0" rotY="0" rotZ="270.67565917969" />
  <vehicle id="vehicle (Hunter) (2)" paintjob="3" model="425" plate="77QK UOY" interior="0" dimension="0" posX="217.310546875" posY="2023.9150390625" posZ="20.460195541382" rotX="0" rotY="0" rotZ="270.67565917969" />
  <vehicle id="vehicle (Fire Truck) (1)" paintjob="3" model="407" plate="IWMD T0C" interior="0" dimension="0" posX="211.03335571289" posY="1974.1120605469" posZ="18.010625839233" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Fire Truck) (2)" paintjob="3" model="407" plate="B6NK Z6M" interior="0" dimension="0" color="3,1,0,0" posX="218.80624389648" posY="1973.9406738281" posZ="18.010625839233" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Ambulance) (2)" paintjob="3" model="416" plate="4OHJ LHC" interior="0" dimension="0" posX="239.15599060059" posY="1975.6252441406" posZ="17.892366409302" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Ambulance) (3)" paintjob="3" model="416" plate="SN2P U6B" interior="0" dimension="0" posX="230.4404296875" posY="1974.669921875" posZ="17.892366409302" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Barracks) (1)" paintjob="3" model="433" plate="4KHT ZMR" interior="0" dimension="0" posX="215.77020263672" posY="1959.8360595703" posZ="17.981498718262" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Rhino) (1)" paintjob="3" model="432" plate="F808 35K" interior="0" dimension="0" posX="281.94961547852" posY="2031.4416503906" posZ="17.739961624146" rotX="0" rotY="0" rotZ="182.61907958984" />
  <vehicle id="vehicle (Securicar) (1)" paintjob="0" model="428" plate="OKWN KUS" interior="0" dimension="0" color="0,25,18,87" posX="224.80909729004" posY="1961.7436523438" posZ="17.89041519165" rotX="0" rotY="0" rotZ="0" />
  <vehicle id="vehicle (Securicar) (2)" paintjob="0" model="428" plate="9A52 VEA" interior="0" dimension="0" color="0,25,18,87" posX="229.91564941406" posY="1961.5500488281" posZ="17.89041519165" rotX="0" rotY="0" rotZ="0" />
</map>
Ahora como hago para meterlos al GM


Gracias de ante-mano
Reply
#2

pawn Код:
public OnGameModeInit()
{
  AddStaticVehicle(520, 278.33117675781, 1949.4387207031, 18.560199737549, 281.91833496094, -1, -1); //0
  AddStaticVehicle(520, 278.07650756836, 1961.6715087891, 18.560199737549, 271.26147460938, -1, -1); //1
  AddStaticVehicle(520, 277.29913330078, 1996.3435058594, 18.560199737549, 262.99475097656, -1, -1); //2
  AddStaticVehicle(520, 275.8330078125, 1980.9296875, 18.560199737549, 281.98608398438, -1, -1); //3
  AddStaticVehicle(470, 273.8916015625, 2016.98046875, 17.700178146362, 272.99926757813, -1, -1); //4
  AddStaticVehicle(470, 273.1962890625, 2021.70703125, 17.700178146362, 272.99926757813, -1, -1); //5
  AddStaticVehicle(470, 272.5390625, 2026.814453125, 17.700178146362, 272.99926757813, -1, -1); //6
  AddStaticVehicle(487, 371.34457397461, 1925.0609130859, 21.06254196167, 91.309326171875, -1, -1); //7
  AddStaticVehicle(548, 373.05892944336, 1961.2648925781, 20.764274597168, 85.354370117188, -1, -1); //8
  AddStaticVehicle(425, 253.10813903809, 2047.5871582031, 18.491624832153, 270.67565917969, -1, -1); //9
  AddStaticVehicle(425, 217.310546875, 2023.9150390625, 20.460195541382, 270.67565917969, -1, -1); //10
  AddStaticVehicle(407, 211.03335571289, 1974.1120605469, 18.010625839233, 0.000000, -1, -1); //11
  AddStaticVehicle(407, 218.80624389648, 1973.9406738281, 18.010625839233, 0.000000, -1, -1); //12
  AddStaticVehicle(416, 239.15599060059, 1975.6252441406, 17.892366409302, 0.000000, -1, -1); //13
  AddStaticVehicle(416, 230.4404296875, 1974.669921875, 17.892366409302, 0.000000, -1, -1); //14
  AddStaticVehicle(433, 215.77020263672, 1959.8360595703, 17.981498718262, 0.000000, -1, -1); //15
  AddStaticVehicle(432, 281.94961547852, 2031.4416503906, 17.739961624146, 182.61907958984, -1, -1); //16
  AddStaticVehicle(428, 224.80909729004, 1961.7436523438, 17.89041519165, 0.000000, -1, -1); //17
  AddStaticVehicle(428, 229.91564941406, 1961.5500488281, 17.89041519165, 0.000000, -1, -1); //18

  return 1;
}
Utiliza http://convertffs.com/objects/ para convertirlos al formato pawn.
Reply
#3

Quote:
Originally Posted by SAWC™
pawn Код:
public OnGameModeInit()
{
  AddStaticVehicle(520, 278.33117675781, 1949.4387207031, 18.560199737549, 281.91833496094, -1, -1); //0
  AddStaticVehicle(520, 278.07650756836, 1961.6715087891, 18.560199737549, 271.26147460938, -1, -1); //1
  AddStaticVehicle(520, 277.29913330078, 1996.3435058594, 18.560199737549, 262.99475097656, -1, -1); //2
  AddStaticVehicle(520, 275.8330078125, 1980.9296875, 18.560199737549, 281.98608398438, -1, -1); //3
  AddStaticVehicle(470, 273.8916015625, 2016.98046875, 17.700178146362, 272.99926757813, -1, -1); //4
  AddStaticVehicle(470, 273.1962890625, 2021.70703125, 17.700178146362, 272.99926757813, -1, -1); //5
  AddStaticVehicle(470, 272.5390625, 2026.814453125, 17.700178146362, 272.99926757813, -1, -1); //6
  AddStaticVehicle(487, 371.34457397461, 1925.0609130859, 21.06254196167, 91.309326171875, -1, -1); //7
  AddStaticVehicle(548, 373.05892944336, 1961.2648925781, 20.764274597168, 85.354370117188, -1, -1); //8
  AddStaticVehicle(425, 253.10813903809, 2047.5871582031, 18.491624832153, 270.67565917969, -1, -1); //9
  AddStaticVehicle(425, 217.310546875, 2023.9150390625, 20.460195541382, 270.67565917969, -1, -1); //10
  AddStaticVehicle(407, 211.03335571289, 1974.1120605469, 18.010625839233, 0.000000, -1, -1); //11
  AddStaticVehicle(407, 218.80624389648, 1973.9406738281, 18.010625839233, 0.000000, -1, -1); //12
  AddStaticVehicle(416, 239.15599060059, 1975.6252441406, 17.892366409302, 0.000000, -1, -1); //13
  AddStaticVehicle(416, 230.4404296875, 1974.669921875, 17.892366409302, 0.000000, -1, -1); //14
  AddStaticVehicle(433, 215.77020263672, 1959.8360595703, 17.981498718262, 0.000000, -1, -1); //15
  AddStaticVehicle(432, 281.94961547852, 2031.4416503906, 17.739961624146, 182.61907958984, -1, -1); //16
  AddStaticVehicle(428, 224.80909729004, 1961.7436523438, 17.89041519165, 0.000000, -1, -1); //17
  AddStaticVehicle(428, 229.91564941406, 1961.5500488281, 17.89041519165, 0.000000, -1, -1); //18

  return 1;
}
Utiliza http://convertffs.com/objects/ para convertirlos al formato pawn.
Код:
C:\Documents and Settings\Carlos\Escritorio\Server MEXICO de Carlos GM(1)\gamemodes\VL-Rp.pwn(12035) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Carlos\Escritorio\Server MEXICO de Carlos GM(1)\gamemodes\VL-Rp.pwn(12061) : warning 225: unreachable code
C:\Documents and Settings\Carlos\Escritorio\Server MEXICO de Carlos GM(1)\gamemodes\VL-Rp.pwn(54135) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Me tira ese erro al compilar

RESUELTO GRACIAS PRO AYUDARME
Reply
#4

Te equibocaste amigo, esque borraste todo... solo tenias que integrarlos en la linea que te dijo SAWC, no borrar todo, mira, primero, borra lo que copiaste mal, y dejalo como a un principio, despues, en el Pawno, ponle Edit > Find, y busca la linea "OnGameInit", te pondra seleccionado algo, alli encontraras que hay mas carros y objetos como los que tu pusiste, debes pegarlos juntos, en linea, seguidos...
Procura no borrar nada, si no integrar tu mapa junto con el que ya esta...

Si no te funca pon todo lo que esta en la line a que te dije, y pegalo, o danos el link del GM y te integramos tus autos XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)