Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Maksim0vic poslato Februar 21, 2018, 23:23:45 POSLE PODNE

Naslov: error 001: expected token: ";", but found "-identifier-"
Poruka od: Maksim0vic poslato Februar 21, 2018, 23:23:45 POSLE PODNE
Detaljan opis problema:Ubacio vao sam nove tdove i sve je lepo ubaceno proveravao sam vise puta ali dobijam error
[pawn]C:\Users\maksimovic\Desktop\BALKAN SUPREME\gamemodes\bsrp.pwn(6899) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[/pawn]
Dio skripte:Uznacio sam sa /// 6899 liniju gde je error

[pawn]/////////////////////////////////INGAME TEXTDRAWS///////////////
   TDEditor_TD[0] = TextDrawCreate(550.000000, 15.377735, "balkan");
   TextDrawLetterSize(TDEditor_TD[0], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[0], 1);
   TextDrawColor(TDEditor_TD[0], -1);
   TextDrawSetShadow(TDEditor_TD[0], 0);
   TextDrawSetOutline(TDEditor_TD[0], 1);
   TextDrawBackgroundColor(TDEditor_TD[0], 255);
   TextDrawFont(TDEditor_TD[0], 2);
   TextDrawSetProportional(TDEditor_TD[0], 1);
   TextDrawSetShadow(TDEditor_TD[0], 0);

   TDEditor_TD[1] = TextDrawCreate(556.500000, 27.122301, "supreme");
   TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[1], 1);
   TextDrawColor(TDEditor_TD[1], -2147483393);
   TextDrawSetShadow(TDEditor_TD[1], 0);
   TextDrawSetOutline(TDEditor_TD[1], 1);
   TextDrawBackgroundColor(TDEditor_TD[1], 255);
   TextDrawFont(TDEditor_TD[1], 2);
   TextDrawSetProportional(TDEditor_TD[1], 1);
   TextDrawSetShadow(TDEditor_TD[1], 0);

   TDEditor_TD[2] = TextDrawCreate(599.899902, 10.766614, "v0.1");
   TextDrawLetterSize(TDEditor_TD[2], 0.198500, 0.847108);
   TextDrawAlignment(TDEditor_TD[2], 1);
   TextDrawColor(TDEditor_TD[2], -1);
   TextDrawSetShadow(TDEditor_TD[2], 0);
   TextDrawSetOutline(TDEditor_TD[2], 1);
   TextDrawBackgroundColor(TDEditor_TD[2], 255);
   TextDrawFont(TDEditor_TD[2], 2);
   TextDrawSetProportional(TDEditor_TD[2], 1);
   TextDrawSetShadow(TDEditor_TD[2], 0);

   TDEditor_TD[3] = TextDrawCreate(521.500000, 1.288866, "online_gaming_community");
   TextDrawLetterSize(TDEditor_TD[3], 0.190999, 1.195554);
   TextDrawAlignment(TDEditor_TD[3], 1);
   TextDrawColor(TDEditor_TD[3], -1);
   TextDrawSetShadow(TDEditor_TD[3], 0);
   TextDrawSetOutline(TDEditor_TD[3], 1);
   TextDrawBackgroundColor(TDEditor_TD[3], 255);
   TextDrawFont(TDEditor_TD[3], 2);
   TextDrawSetProportional(TDEditor_TD[3], 1);
   TextDrawSetShadow(TDEditor_TD[3], 0);

   TDEditor_TD[4] = TextDrawCreate(534.099975, 96.633369, "$999999999");
   TextDrawLetterSize(TDEditor_TD[4], 0.264499, 1.189332);
   TextDrawAlignment(TDEditor_TD[4], 1);
   TextDrawColor(TDEditor_TD[4], 69818367);
   TextDrawSetShadow(TDEditor_TD[4], 0);
   TextDrawSetOutline(TDEditor_TD[4], 1);
   TextDrawBackgroundColor(TDEditor_TD[4], 255);
   TextDrawFont(TDEditor_TD[4], 2);
   TextDrawSetProportional(TDEditor_TD[4], 1);
   TextDrawSetShadow(TDEditor_TD[4], 0);

   TDEditor_TD[5] = TextDrawCreate(360.903167, 429.455596, "-supreme.com");
   TextDrawLetterSize(TDEditor_TD[5], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[5], 2);
   TextDrawColor(TDEditor_TD[5], -2147483393);
   TextDrawSetShadow(TDEditor_TD[5], 0);
   TextDrawSetOutline(TDEditor_TD[5], 1);
   TextDrawBackgroundColor(TDEditor_TD[5], 255);
   TextDrawFont(TDEditor_TD[5], 3);
   TextDrawSetProportional(TDEditor_TD[5], 1);
   TextDrawSetShadow(TDEditor_TD[5], 0);

   TDEditor_TD[6] = TextDrawCreate(265.701812, 429.355590, "www.balkan");
   TextDrawLetterSize(TDEditor_TD[6], 0.400000, 1.600000);
   TextDrawAlignment(TDEditor_TD[6], 2);
   TextDrawColor(TDEditor_TD[6], -1);
   TextDrawSetShadow(TDEditor_TD[6], 0);
   TextDrawSetOutline(TDEditor_TD[6], 1);
   TextDrawBackgroundColor(TDEditor_TD[6], 255);
   TextDrawFont(TDEditor_TD[6], 3);
   TextDrawSetProportional(TDEditor_TD[6], 1);
   TextDrawSetShadow(TDEditor_TD[6], 0)
   ///////////////////////////////////////////////////////////////
   TDO[0] = TextDrawCreate(41.000000, 260.000000, "_"); /// 6899
   TextDrawBackgroundColor(TDO[0], 255);
   TextDrawFont(TDO[0], 1);
   TextDrawLetterSize(TDO[0], 0.500000, 0.499998);
   TextDrawColor(TDO[0], -1);
   TextDrawSetOutline(TDO[0], 0);
   TextDrawSetProportional(TDO[0], 1);
   TextDrawSetShadow(TDO[0], 1);
   TextDrawUseBox(TDO[0], 1);
   TextDrawBoxColor(TDO[0], -1);
   TextDrawTextSize(TDO[0], 148.000000, 19.000000);

   TDO[1] = TextDrawCreate(41.000000, 271.000000, "_");
   TextDrawBackgroundColor(TDO[1], 255);
   TextDrawFont(TDO[1], 1);
   TextDrawLetterSize(TDO[1], 0.500000, 6.499997);
   TextDrawColor(TDO[1], -1);
   TextDrawSetOutline(TDO[1], 0);
   TextDrawSetProportional(TDO[1], 1);
   TextDrawSetShadow(TDO[1], 1);
   TextDrawUseBox(TDO[1], 1);
   TextDrawBoxColor(TDO[1], 842150450);
   TextDrawTextSize(TDO[1], 148.000000, 19.000000);

   TDO[2] = TextDrawCreate(40.000000, 268.000000, "Dalje - ~y~Levi Klick");
   TextDrawBackgroundColor(TDO[2], 255);
   TextDrawFont(TDO[2], 2);
   TextDrawLetterSize(TDO[2], 0.280000, 1.700000);
   TextDrawColor(TDO[2], -1);
   TextDrawSetOutline(TDO[2], 0);
   TextDrawSetProportional(TDO[2], 1);
   TextDrawSetShadow(TDO[2], 1);

   TDO[3] = TextDrawCreate(40.000000, 298.000000, "odabir - ~y~shift");
   TextDrawBackgroundColor(TDO[3], 255);
   TextDrawFont(TDO[3], 2);
   TextDrawLetterSize(TDO[3], 0.310000, 1.600000);
   TextDrawColor(TDO[3], -1);
   TextDrawSetOutline(TDO[3], 0);
   TextDrawSetProportional(TDO[3], 1);
   TextDrawSetShadow(TDO[3], 1);

   TDO[4] = TextDrawCreate(39.000000, 284.000000, "Izlaz - ~y~Space");
   TextDrawBackgroundColor(TDO[4], 255);
   TextDrawFont(TDO[4], 2);
   TextDrawLetterSize(TDO[4], 0.349999, 1.500000);
   TextDrawColor(TDO[4], -1);
   TextDrawSetOutline(TDO[4], 0);
   TextDrawSetProportional(TDO[4], 1);
   TextDrawSetShadow(TDO[4], 1);

   TDO[5] = TextDrawCreate(73.000000, 254.000000, "Butik");
   TextDrawBackgroundColor(TDO[5], 255);
   TextDrawFont(TDO[5], 2);
   TextDrawLetterSize(TDO[5], 0.349999, 1.500000);
   TextDrawColor(TDO[5], -16776961);
   TextDrawSetOutline(TDO[5], 0);
   TextDrawSetProportional(TDO[5], 1);
   TextDrawSetShadow(TDO[5], 1);

   TDO[6] = TextDrawCreate(40.000000, 314.000000, "Cena: ~g~250$");
   TextDrawBackgroundColor(TDO[6], 255);
   TextDrawFont(TDO[6], 2);
   TextDrawLetterSize(TDO[6], 0.349999, 1.500000);
   TextDrawColor(TDO[6], -1);
   TextDrawSetOutline(TDO[6], 0);
   TextDrawSetProportional(TDO[6], 1);
   TextDrawSetShadow(TDO[6], 1);
   ///////////////////////////////////////////////////////////////[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: error 001: expected token: ";", but found "-identifier-"
Poruka od: lucius poslato Februar 21, 2018, 23:41:54 POSLE PODNE
Linija iznad treba da bude zatvorena.
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0);[/pawn]
Naslov: Odg: error 001: expected token: ";", but found "-identifier-"
Poruka od: Maksim0vic poslato Februar 21, 2018, 23:47:29 POSLE PODNE
Citat: \nLucius poslato Februar 21, 2018, 23:41:54 POSLE PODNE
Linija iznad treba da bude zatvorena.
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0);[/pawn]

Posto sm pocetnik kako to mislis da linija bude zatvorena?
Naslov: Odg: error 001: expected token: ";", but found "-identifier-"
Poruka od: lucius poslato Februar 21, 2018, 23:51:18 POSLE PODNE
Linija izgleda ovako
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0)[/pawn]
a treba da izgleda ovako
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0);[/pawn]
fali ti znak ";" na kraju
Naslov: Odg: error 001: expected token: ";", but found "-identifier-"
Poruka od: Maksim0vic poslato Februar 21, 2018, 23:56:07 POSLE PODNE
Citat: \nLucius poslato Februar 21, 2018, 23:51:18 POSLE PODNE
Linija izgleda ovako
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0)[/pawn]
a treba da izgleda ovako
[pawn]TextDrawSetShadow(TDEditor_TD[6], 0);[/pawn]
fali ti znak ";" na kraju

Ahaa,ja sm trazio jedno 5 minuta gde mi fali ; i nisam skontao gde je inace HVALA TI MNOGO :)