[Ajuda] Erro a adicionar mapa
#1

Bom eu estou com um problema a adicioanr um mapa no gamemode carlitos RolePlay.

Eu adiciono o seguinte codigo(mapa):


AddStaticVehicleEx(596,-227.5000000,992.0000000,19.2000008,269.7500000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,-227.5000000,999.7000122,19.2999992,269.2500610,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,-227.5000000,995.9000244,19.2999992,270.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(523,-220.6000061,1006.4000244,19.2999992,178.7498779,-1,-1,15); //HPV1000
AddStaticVehicleEx(523,-217.0000000,1006.5000000,19.3999996,178.7475586,-1,-1,15); //HPV1000
AddStaticVehicleEx(599,-210.6999969,1000.4000244,20.0000000,90.2500000,-1,-1,15); //Police Ranger
CreateObject(4640,-207.6000061,971.9000244,19.5000000,0.0000000,358.0 000000,179.7500000); //object(paypark_lan03) (2)
CreateObject(2987,250.5000000,63.2999992,1003.9000 244,0.0000000,0.0000000,90.0000000); //object(lxr_motel_doorsim) (1)


e dame o seguinte erro

C:\Users\Toshiba\Desktop\F-Gamers Gamemode RP\gamemodes\crp.pwn(157) : error 021: symbol already defined: "AddStaticVehicleEx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

cara posta a linha do erro.
Reply
#3

Reply
#4

Cara vocк colocou este cуdigo no OnGameModeInit?..

aqui nгo deu erro nгo.
Reply
#5

ond tenho que colocar o codigo OnGameModeInit ?
Reply
#6

pawn Код:
AddStaticVehicleEx(596,-227.5000000,992.0000000,19.2000008,269.7500000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,-227.5000000,999.7000122,19.2999992,269.2500610,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(596,-227.5000000,995.9000244,19.2999992,270.0000000,-1,-1,15); //Police Car (LSPD)
AddStaticVehicleEx(523,-220.6000061,1006.4000244,19.2999992,178.7498779,-1,-1,15); //HPV1000
AddStaticVehicleEx(523,-217.0000000,1006.5000000,19.3999996,178.7475586,-1,-1,15); //HPV1000
AddStaticVehicleEx(599,-210.6999969,1000.4000244,20.0000000,90.2500000,-1,-1,15); //Police Ranger
CreateObject(4640,-207.6000061,971.9000244,19.5000000,0.0000000,358.0 000000,179.7500000); //object(paypark_lan03) (2)
CreateObject(2987,250.5000000,63.2999992,1003.9000 244,0.0000000,0.0000000,90.0000000); //object(lxr_motel_doorsim) (1)
Vocк tem que colocar isso, dentro da public OnGameModeInit.
Reply
#7

Procura pelos carros:
AddStaticVehicleEx
Код:
//=================== SAMU ========================================================================================
	AddStaticVehicleEx(416,2038.97473145,-1447.74206543,17.60395432,90.00000000,1,3,-1); //Ambulance    [ 122 ]
	AddStaticVehicleEx(416,2000.98083496,-1406.79394531,17.46540070,180.00000000,1,3,-1); //Ambulance    [ 123 ]
	AddStaticVehicleEx(416,2025.00500488,-1412.81982422,17.29176331,89.99987793,1,3,-1); //Ambulance    [ 124 ]
	AddStaticVehicleEx(416,2012.98413086,-1418.80981445,17.29176331,91.99536133,1,3,-1); //Ambulance    [ 125 ]
	AddStaticVehicleEx(586,2017.12915039,-1433.66479492,13.15168762,50.00000000,1,3,-1); //Wayfarer    [ 119 ]
	AddStaticVehicleEx(586,2018.96496582,-1432.00805664,13.15128803,49.99877930,1,3,-1); //Wayfarer    [ 120 ]
	AddStaticVehicleEx(487,2017.18750000,-1389.87500000,48.60093689,180.00000000,1,3,-1); //Maverick    [ 128 ]
O codigo acima й os carros do samu, mas se vc colocar seus carros por ai vai comeзar dar bugs ao entrar nos outros carros, entao procure pelo ultimo "AddStaticVehicleEx"

Код:
//=========== AEREOS DO LS ============================================================================================================================================
	AddStaticVehicleEx(519,2041.3267,-2647.7214,14.4689,1.9154,1,1,-1); // aviao
	AddStaticVehicleEx(519,2014.8304,-2649.1277,14.4689,3.2044,1,1,-1); // aviao2
	AddStaticVehicleEx(519,1558.2052,-2430.8350,14.4767,151.5341,1,1,-1); // aviao3
	AddStaticVehicleEx(487,2075.6763,-2462.3757,13.7354,180.0603,1,1,-1); // heli
	AddStaticVehicleEx(487,2096.0747,-2454.8586,13.7237,177.1874,1,1,-1); // heli2
	AddStaticVehicleEx(593,1725.1467,-2424.7200,14.0168,155.5299,1,1,-1); // aviao
	AddStaticVehicleEx(593,1718.8738,-2646.1694,14.0035,0.2520,1,1,-1); // aviao
em seguida coloque o seu:

Код:
AddStaticVehicleEx(596,-227.5000000,992.0000000,19.2000008,269.7500000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,999.7000122,19.2999992,269.2500610,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,995.9000244,19.2999992,270.0000000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(523,-220.6000061,1006.4000244,19.2999992,178.7498779,-1,-1,15); //HPV1000
 AddStaticVehicleEx(523,-217.0000000,1006.5000000,19.3999996,178.7475586,-1,-1,15); //HPV1000
 AddStaticVehicleEx(599,-210.6999969,1000.4000244,20.0000000,90.2500000,-1,-1,15); //Police Ranger
no caso dos "CreateObject" й so procurar onde eles ficam EX:
Код:
CreateObject(987,2614.80004883,-2248.19995117,0.00000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (1)
CreateObject(987,2564.30004883,-2247.19995117,0.00000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (2)
CreateObject(987,2576.00000000,-2247.19995117,0.00000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (3)
CreateObject(987,2603.00000000,-2248.10009766,0.00000000,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (4)
E coloque ele ai
Reply
#8

agora tenho o seguinte erro:

C:\Users\Toshiba\Desktop\F-Gamers Gamemode RP\gamemodes\crp.pwn(1280) : error 021: symbol already defined: "AddStaticVehicleEx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#9

Tentou trocar seu codigo:
Код:
AddStaticVehicleEx(596,-227.5000000,992.0000000,19.2000008,269.7500000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,999.7000122,19.2999992,269.2500610,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,995.9000244,19.2999992,270.0000000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicleEx(523,-220.6000061,1006.4000244,19.2999992,178.7498779,-1,-1,15); //HPV1000
 AddStaticVehicleEx(523,-217.0000000,1006.5000000,19.3999996,178.7475586,-1,-1,15); //HPV1000
 AddStaticVehicleEx(599,-210.6999969,1000.4000244,20.0000000,90.2500000,-1,-1,15); //Police Ranger
POR:

Код:
AddStaticVehicle(596,-227.5000000,992.0000000,19.2000008,269.7500000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicle(596,-227.5000000,999.7000122,19.2999992,269.2500610,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicle(596,-227.5000000,995.9000244,19.2999992,270.0000000,-1,-1,15); //Police Car (LSPD)
 AddStaticVehicle(523,-220.6000061,1006.4000244,19.2999992,178.7498779,-1,-1,15); //HPV1000
 AddStaticVehicle(523,-217.0000000,1006.5000000,19.3999996,178.7475586,-1,-1,15); //HPV1000
 AddStaticVehicle(599,-210.6999969,1000.4000244,20.0000000,90.2500000,-1,-1,15); //Police Ranger
Se nгo funcionar, Ultima tentativa:

Код:
AddStaticVehicleEx(596,-227.5000000,992.0000000,19.2000008,269.7500000,103,1,-1); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,999.7000122,19.2999992,269.2500610,103,1,-1); //Police Car (LSPD)
 AddStaticVehicleEx(596,-227.5000000,995.9000244,19.2999992,270.0000000,103,1,-1); //Police Car (LSPD)
 AddStaticVehicleEx(523,-220.6000061,1006.4000244,19.2999992,178.7498779,103,1,-1); //HPV1000
 AddStaticVehicleEx(523,-217.0000000,1006.5000000,19.3999996,178.7475586,103,1,-1); //HPV1000
 AddStaticVehicleEx(599,-210.6999969,1000.4000244,20.0000000,90.2500000,103,1,-1); //Police Ranger
Reply
#10

Mesmo Erro:

C:\Users\Toshiba\Desktop\F-Gamers Gamemode RP\gamemodes\crp.pwn(1281) : error 021: symbol already defined: "AddStaticVehicleEx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)