[Ajuda] Erro ao fazer carros para a gang
#1

Bom eu estava fazendo as gangs para o meu server fiz os comandos /covidar,/promover e/demitir normal atй ae blz
ae na hora q fui colocar as "new" para adicionar os veiculos das Gangs deu 4 erros sendo eles

Код:
K:\Yuran\Meu server\gamemodes\Modelo1.pwn(690) : error 017: undefined symbol "Vgo"
K:\Yuran\Meu server\gamemodes\Modelo1.pwn(690) : warning 215: expression has no effect
K:\Yuran\Meu server\gamemodes\Modelo1.pwn(690) : error 001: expected token: ";", but found "]"
K:\Yuran\Meu server\gamemodes\Modelo1.pwn(690) : error 029: invalid expression, assumed zero
K:\Yuran\Meu server\gamemodes\Modelo1.pwn(690) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Aki estгo as news q eu fiz:

Код:
new Vpm [38];//Policia Militar
new Vpf [18];//Policia Federal
new Vpr [25];//ROTAM
new Vpe [24];//EXERCITO
new Vgo [13];//GROVE
new Vb [15];//BALLAS
new Va [13];//AZTECAS
new Vv [15];//VAGOS
new Vcv [15];//COMANDO VERMELHO
new Vp [13];//PCC
new Vm [15];//MS-13
new Vh [18];//HITMAN
new Vt [19];//TRIAD
new Vsof [14];//SONS OF ANARCHY
new Vcn [14];//COSA NOSTRA
new Vmy [14]; //YAKUZA
new Vf [45];//FARC
new Vgi [32];//GI
e aqui estao os veiculos ja com a new aplicada:

Код:
	Vgo[0] = AddStaticVehicleEx(405,2486.50000000,-1682.69995117,13.30000019,270.00000000,16,16,15); //1Sentinel
	Vgo[1] = AddStaticVehicleEx(536,2492.59960938,-1682.50000000,13.19999981,270.00000000,16,16,15); //2Blade
	Vgo[2] = AddStaticVehicleEx(461,2501.89990234,-1680.90002441,13.10000038,34.00000000,16,16,15); //3PCJ-600
	Vgo[3] = AddStaticVehicleEx(468,2502.89990234,-1680.50000000,13.10000038,38.00000000,16,16,15); //4Sanchez
	Vgo[4] = AddStaticVehicleEx(521,2503.69995117,-1679.69995117,13.00000000,44.00000000,16,16,15); //5FCR-900
	Vgo[5] = AddStaticVehicleEx(522,2504.30004883,-1678.90002441,13.00000000,42.00000000,16,16,15); //6NRG-500
	Vgo[6] = AddStaticVehicleEx(536,2506.60009766,-1675.90002441,13.19999981,326.00000000,16,16,15); //7Blade
	Vgo[7] = AddStaticVehicleEx(536,2508.19995117,-1666.09997559,13.30000019,9.99731445,16,16,15); //8Blade
	Vgo[8] = AddStaticVehicleEx(536,2502.39990234,-1657.40002441,13.30000019,54.00000000,16,16,15); //9Blade
	Vgo[9] = AddStaticVehicleEx(603,2499.89941406,-1684.89941406,13.39999962,21.99462891,16,16,15); //10Phoenix
	Vgo[10] = AddStaticVehicleEx(487,2506.30004883,-1694.59997559,18.20000076,48.00000000,86,16,15); //11Maverick
	Vgo[11] = AddStaticVehicleEx(548,2530.10009766,-1677.50000000,21.79999924,90.00000000,16,16,15); //12Cargobob
	CreateObject(12950,2524.39990234,-1666.59997559,16.20000076,0.00000000,0.00000000,178.00000000); //Escada)
	CreateObject(14407,2507.19995117,-1701.69995117,14.19999981,0.00000000,0.00000000,184.00000000); //Escada
quem puder ajudar des de ja agradeзo ^^
Reply
#2

Qual a linha do erro?

@Edit

Deixa ja vi o erro, bota assim:
pawn Код:
Vgo[0] = AddStaticVehicleEx(405,2486.50000000,-1682.69995117,13.30000019,270.00000000,16,16,15); //1Sentinel
    Vgo[1] = AddStaticVehicleEx(536,2492.59960938,-1682.50000000,13.19999981,270.00000000,16,16,15); //2Blade
    Vgo[2] = AddStaticVehicleEx(461,2501.89990234,-1680.90002441,13.10000038,34.00000000,16,16,15); //3PCJ-600
    Vgo[3] = AddStaticVehicleEx(468,2502.89990234,-1680.50000000,13.10000038,38.00000000,16,16,15); //4Sanchez
    Vgo[4] = AddStaticVehicleEx(521,2503.69995117,-1679.69995117,13.00000000,44.00000000,16,16,15); //5FCR-900
    Vgo[5] = AddStaticVehicleEx(522,2504.30004883,-1678.90002441,13.00000000,42.00000000,16,16,15); //6NRG-500
    Vgo[6] = AddStaticVehicleEx(536,2506.60009766,-1675.90002441,13.19999981,326.00000000,16,16,15); //7Blade
    Vgo[7] = AddStaticVehicleEx(536,2508.19995117,-1666.09997559,13.30000019,9.99731445,16,16,15); //8Blade
    Vgo[8] = AddStaticVehicleEx(536,2502.39990234,-1657.40002441,13.30000019,54.00000000,16,16,15); //9Blade
    Vgo[9] = AddStaticVehicleEx(603,2499.89941406,-1684.89941406,13.39999962,21.99462891,16,16,15); //10Phoenix
    Vgo[10] = AddStaticVehicleEx(487,2506.30004883,-1694.59997559,18.20000076,48.00000000,86,16,15); //11Maverick
    Vgo[11] = AddStaticVehicleEx(548,2530.10009766,-1677.50000000,21.79999924,90.00000000,16,16,15); //12Cargobob
    CreateObject(12950,2524.39990234,-1666.59997559,16.20000076,0.00000000,0.00000000,178.00000000); //Escada
    CreateObject(14407,2507.19995117,-1701.69995117,14.19999981,0.00000000,0.00000000,184.00000000); //Escada
Reply
#3

Colocou a stock no final do GM?
Reply
#4

Quote:
Originally Posted by Pedro Pawno
Посмотреть сообщение
Colocou a stock no final do GM?
O erro dele йra porquк tinha uma ")" desnecessбria na linha!
Reply
#5

stock?? fiz lendo um tutorial nao falava pra fazer nda alem do q tinha la mais Oo estou fazendo este serve como esperienicia para dpois criar um de verdade :S e vlw baiano mais nao deu do jeito q vc mando
Reply
#6

pawn Код:
forward VerificarVeiculo(playerid);
public VerificarVeiculo(playerid)
{
    for(new c = 0; c <= 4; c++)
    {
 if(IsPlayerInVehicle(playerid, [NOME DEFINIDO].[c]))
    {
            SendClientMessage(playerid, -1, "Vocк nгo й da ...");
            RemovePlayerFromVehicle(playerid);
            return 1;
        }
    }
    return 1;
}
No final do Game Mode.

Se quiser posta seu gm aqui que eu arrumo.
Reply
#7

Mova o cуdigo de declaraзгo das variбveis para o topo do GM .



Espero ter ajudado .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)