Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Agent 47 poslato Septembar 26, 2017, 19:36:16 POSLE PODNE

Naslov: Label na kolima
Poruka od: Agent 47 poslato Septembar 26, 2017, 19:36:16 POSLE PODNE
Skripta koju koristim:UP cist
Detaljan opis problema:Napravio sam label za PD kola i baca mi error al ne kontam
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno): https://imgur.com/a/Jrk0e
Naslov: Odg: Label na kolima
Poruka od: .Escobar371_ poslato Septembar 26, 2017, 19:47:19 POSLE PODNE
Obrisi ove duple zagrade ]]

(https://i.imgur.com/acQOhac.png)
Naslov: Odg: Label na kolima
Poruka od: Agent 47 poslato Septembar 26, 2017, 19:58:20 POSLE PODNE
Nece opet isti problem
Naslov: Odg: Label na kolima
Poruka od: Slade poslato Septembar 26, 2017, 20:03:02 POSLE PODNE
Pa daj definiciju, uopšte mi ne ide u glavu zašto si tako definirao?
Naslov: Odg: Label na kolima
Poruka od: Agent 47 poslato Septembar 26, 2017, 20:06:43 POSLE PODNE
Evo ti http://prntscr.com/gq0h0p  http://prntscr.com/gq0hf9
Naslov: Odg: Label na kolima
Poruka od: Agent 47 poslato Septembar 26, 2017, 20:08:05 POSLE PODNE
Evo ga 1 errror http://prntscr.com/gq0i0v
Naslov: Odg: Label na kolima
Poruka od: SariX.tde poslato Septembar 26, 2017, 23:15:54 POSLE PODNE
Definisao 30 a ima samo 1
Naslov: Odg: Label na kolima
Poruka od: SariX.tde poslato Septembar 26, 2017, 23:20:09 POSLE PODNE
Citat: SariX.tde poslato Septembar 26, 2017, 23:15:54 POSLE PODNE
Definisao 30 a ima samo 1

[pawn]new Text3D:policija3d[MAX_VOZILA][/pawn]

Probaj

o dole smakni ote nule u [] i zagrade oko nule
Naslov: Odg: Label na kolima
Poruka od: SariX.tde poslato Septembar 26, 2017, 23:23:08 POSLE PODNE
Bar mislim da je to to
Naslov: Odg: Label na kolima
Poruka od: Vuk7 poslato Septembar 26, 2017, 23:31:08 POSLE PODNE
Ti si ovdje sve pomijesao
evo ti primjer kako bi trebalo izgledat
[pawn]new veh[2];
veh[0] = CreateVehicle(411,0.0,0.0,0.0,0,0,100);
veh[1] = CreateVehicle(411,0.0,0.0,0.0,0,0,100);

new Text3D:txt[2];
txt[0] = Create3DTextLabel("Tekst", -1,0.0,0.0,0.0,30.0, 0, 1);
txt[1]= Create3DTextLabel("Tekst", -1,0.0,0.0,0.0,30.0, 0, 1);

Attach3DTextLabelToVehicle(txt[0], veh[0], 0.0, 0.0, 0.0);
Attach3DTextLabelToVehicle(txt[1], veh[1], 0.0, 0.0, 0.0);[/pawn]
Naslov: Odg: Label na kolima
Poruka od: Slade poslato Septembar 26, 2017, 23:48:17 POSLE PODNE
[pawn]new PDVozilo[7];
new Text3D:PDLabel[sizeof(PDVozilo)];[/pawn]

[pawn]   PDVozilo[0] = CreateVehicle(416,1178.4215,-1338.6812,14.0212,270.5844,6,1, -1); //
   PDVozilo[1] = CreateVehicle(416,1178.3295,-1308.5007,13.9942,269.0874,6,1, -1); //
   PDVozilo[2] = CreateVehicle(416,1190.3779,-1311.4081,13.6441,180.0146,6,1, -1); //
   PDVozilo[3] = CreateVehicle(416,1190.4136,-1328.7921,13.6472,180.2799,6,1, -1); //
   PDVozilo[4] = CreateVehicle(416,1209.4058,-1359.7382,13.4819,2.0721,6,1, -1); //
   PDVozilo[5] = CreateVehicle(416,1209.4325,-1337.7991,13.5476,358.5516,6,1, -1); //
   PDVozilo[6] = CreateVehicle(416,1209.0547,-1315.9083,13.5482,1.5346,6,1, -1); //[/pawn]

[pawn]for(new h=0; h < sizeof(PDVozilo); h++)
{
       PDLabel[ h ] = Create3DTextLabel( "POLICIJA", 0xFF0000FF, 0.0, 0.0, 0.0, 10.0, 0, 1 );
       Attach3DTextLabelToVehicle( PDLabel[ h ] , PDVozilo[ h ], 0.0, 0.0, 0.1);
}[/pawn]