[Ajuda] Oque hб de errado ?
#1

pawn Код:
C:\Users\Gabriel\Desktop\Gamemode\BSL\gamemodes\GM.pwn(83) : error 049: invalid line continuation
Code
pawn Код:
MotinhasSpawn[0] = CreateVehicle(462,1698.9899,-1899.6999,13.2000,92.0000,214,,-1,-1, -1);
Public toda:
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Development");
    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    //==================================================Motinha Novatos=========================================================\\
    MotinhasSpawn[0] = CreateVehicle(462,1698.9899,-1899.6999,13.2000,92.0000,214,,-1,-1, -1);
    MotinhasSpawn[1] = CreateVehicle(462,1698.9899900,-1900.8000500,13.2000000,92.0000000,-1,-1, -1);
    MotinhasSpawn[2] = CreateVehicle(462,1698.9899900,-1902.0000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[3] = CreateVehicle(462,1698.9899900,-1903.5000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[4] = CreateVehicle(462,1698.9899900,-1897.3000500,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[5] = CreateVehicle(462,1698.9899900,-1898.5999800,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[6] = CreateVehicle(510,1698.9899900,-1907.0999800,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[7] = CreateVehicle(510,1698.9899900,-1909.8000500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[8] = CreateVehicle(510,1698.9899900,-1912.4000200,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[9] = CreateVehicle(510,1698.9899900,-1911.0999800,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[10] = CreateVehicle(510,1698.9899900,-1913.6999500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[11] = CreateVehicle(510,1698.9899900,-1908.5000000,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[12] = CreateVehicle(462,1698.9899900,-1905.0999800,13.2000000,88.0000000,-1,-1, -1);
    for(new i = 0; i < 10; ++i) SetVehicleNumberPlate(MotinhasSpawn[i], "Novatos");
    return 1;
}
Reply
#2

Ola

ve se e isto

pawn Код:
MotinhasSpawn[0] = CreateVehicle(462, 1698.9899, -1899.6999, 13.2000, 92.0000, -1, -1, -1);
tinha 1 ',' e 1 parametro a mais

correto e;

pawn Код:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
Reply
#3

Tenta

PHP код:
MotinhasSpawn[0] = CreateVehicle(462,1698.9899,-1899.6999,13.2000,92.0000,214,-1,-1, -1); 
Reply
#4

new motinhasspawn[13];


Seu primeiro veiculo tem duas virgulas.


Bote 13 ao invez de 10 no seu loop.
Reply
#5

Quote:

MotinhasSpawn[0] = CreateVehicle(462,1698.9899,-1899.6999,13.2000,92.0000,214,,-1,-1, -1);

replace:

Код:
MotinhasSpawn[0] = CreateVehicle(462,1698.9899,-1899.6999,13.2000,92.0000,214,-1,-1, -1);
Error


Код:
,,-1,-1,-1
Reply
#6

Deixei assim
pawn Код:
MotinhasSpawn[0] = CreateVehicle(462, 1698.9899, -1899.6999, 13.2000, 92.0000, -1, -1, -1);
continua mesma coisa :S
Reply
#7

Tenta la

pawn Код:
// Topo do GM
new MotinhasSpawn[13];

public OnGameModeInit()
{
    SetGameModeText("Development");
    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    //==================================================Motinha Novatos=========================================================\\
    MotinhasSpawn[0] = CreateVehicle(462, 1698.9899, -1899.6999, 13.2000, 92.0000, -1, -1, -1);
    MotinhasSpawn[1] = CreateVehicle(462,1698.9899900,-1900.8000500,13.2000000,92.0000000,-1,-1, -1);
    MotinhasSpawn[2] = CreateVehicle(462,1698.9899900,-1902.0000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[3] = CreateVehicle(462,1698.9899900,-1903.5000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[4] = CreateVehicle(462,1698.9899900,-1897.3000500,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[5] = CreateVehicle(462,1698.9899900,-1898.5999800,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[6] = CreateVehicle(510,1698.9899900,-1907.0999800,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[7] = CreateVehicle(510,1698.9899900,-1909.8000500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[8] = CreateVehicle(510,1698.9899900,-1912.4000200,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[9] = CreateVehicle(510,1698.9899900,-1911.0999800,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[10] = CreateVehicle(510,1698.9899900,-1913.6999500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[11] = CreateVehicle(510,1698.9899900,-1908.5000000,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[12] = CreateVehicle(462,1698.9899900,-1905.0999800,13.2000000,88.0000000,-1,-1, -1);
    for(new i = 0; i < 10; ++i) SetVehicleNumberPlate(MotinhasSpawn[i], "Novatos");
    return 1;
}
Reply
#8

Quote:
Originally Posted by PT
Посмотреть сообщение
Tenta la

pawn Код:
// Topo do GM
new MotinhasSpawn[13];

public OnGameModeInit()
{
    SetGameModeText("Development");
    UsePlayerPedAnims();
    DisableInteriorEnterExits();
    //==================================================Motinha Novatos=========================================================\\
    MotinhasSpawn[0] = CreateVehicle(462, 1698.9899, -1899.6999, 13.2000, 92.0000, -1, -1, -1);
    MotinhasSpawn[1] = CreateVehicle(462,1698.9899900,-1900.8000500,13.2000000,92.0000000,-1,-1, -1);
    MotinhasSpawn[2] = CreateVehicle(462,1698.9899900,-1902.0000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[3] = CreateVehicle(462,1698.9899900,-1903.5000000,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[4] = CreateVehicle(462,1698.9899900,-1897.3000500,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[5] = CreateVehicle(462,1698.9899900,-1898.5999800,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[6] = CreateVehicle(510,1698.9899900,-1907.0999800,13.2000000,88.0000000,-1,-1, -1);
    MotinhasSpawn[7] = CreateVehicle(510,1698.9899900,-1909.8000500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[8] = CreateVehicle(510,1698.9899900,-1912.4000200,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[9] = CreateVehicle(510,1698.9899900,-1911.0999800,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[10] = CreateVehicle(510,1698.9899900,-1913.6999500,13.2000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[11] = CreateVehicle(510,1698.9899900,-1908.5000000,13.3000000,90.0000000,-1,-1, -1);
    MotinhasSpawn[12] = CreateVehicle(462,1698.9899900,-1905.0999800,13.2000000,88.0000000,-1,-1, -1);
    for(new i = 0; i < 10; ++i) SetVehicleNumberPlate(MotinhasSpawn[i], "Novatos");
    return 1;
}
Acho que tu nгo percebeu *-*

pawn Код:
for(new i = 0; i < 13; ++i) SetVehicleNumberPlate(MotinhasSpawn[i], "Novatos");
Reply
#9

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
Acho que tu nгo percebeu *-*

pawn Код:
for(new i = 0; i < 13; ++i) SetVehicleNumberPlate(MotinhasSpawn[i], "Novatos");
Ixee que fail o meu, nem vi isso

Desculpa Biieell

Obrigado mau.tito
Reply
#10

Eu ja tinha falado deste loop errado. Sao 13 Veiculos.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)