Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Fr0z3n poslato Mart 04, 2020, 21:44:17 POSLE PODNE

Naslov: Warning
Poruka od: Fr0z3n poslato Mart 04, 2020, 21:44:17 POSLE PODNE
Problem(error/warning): warning 217: loose indentation ne radi pragma tabsize 0
Dio skripte: [pawn]YCMD:tdoff(playerid, params[], help)
{
        TextDrawHideForPlayer(playerid, Ingame_gTD[0]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[1]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[2]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[3]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[4]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[5]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[6]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[7]);
        TextDrawHideForPlayer(playerid, Ingame_gTD[8]);


   return true;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): /
Naslov: Odg: Warning
Poruka od: Teodor poslato Mart 04, 2020, 22:03:54 POSLE PODNE
Probaj sad

[pawn]
YCMD:tdoff(playerid, params[], help)
{
   TextDrawHideForPlayer(playerid, Ingame_gTD[0]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[1]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[2]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[3]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[4]);
    TextDrawHideForPlayer(playerid, Ingame_gTD[5]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[6]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[7]);
   TextDrawHideForPlayer(playerid, Ingame_gTD[8]);
   return 1;
}
[/pawn]
Naslov: Odg: Warning
Poruka od: Fr0z3n poslato Mart 04, 2020, 22:49:39 POSLE PODNE
Rdilo mi je samo za taj jedan a ovaj sam isto promenio i nece da fixa
[pawn]YCMD:tdon(playerid, params[], help)
{
        TextDrawShowForPlayer(playerid, Ingame_gTD[0]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[1]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[2]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[3]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[4]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[5]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[6]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[7]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[8]);

   return 1;
}[/pawn]
Naslov: Odg: Warning
Poruka od: Teodor poslato Mart 05, 2020, 15:34:18 POSLE PODNE
Citat: Fr0z3n poslato Mart 04, 2020, 22:49:39 POSLE PODNE
Rdilo mi je samo za taj jedan a ovaj sam isto promenio i nece da fixa
[pawn]YCMD:tdon(playerid, params[], help)
{
        TextDrawShowForPlayer(playerid, Ingame_gTD[0]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[1]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[2]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[3]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[4]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[5]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[6]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[7]);
        TextDrawShowForPlayer(playerid, Ingame_gTD[8]);

   return 1;
}[/pawn]
SAD?

[pawn]
YCMD:tdon(playerid, params[], help)
{
   TextDrawShowForPlayer(playerid, Ingame_gTD[0]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[1]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[2]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[3]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[4]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[5]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[6]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[7]);
   TextDrawShowForPlayer(playerid, Ingame_gTD[8]);
   return 1;
}
[/pawn]
Naslov: Odg: Warning
Poruka od: Arkoo poslato Mart 05, 2020, 16:48:47 POSLE PODNE
[pawno]YCMD:tdon(playerid, params[], help)
{
TextDrawShowForPlayer(playerid, Ingame_gTD[0]);
TextDrawShowForPlayer(playerid, Ingame_gTD[1]);
TextDrawShowForPlayer(playerid, Ingame_gTD[2]);
TextDrawShowForPlayer(playerid, Ingame_gTD[3]);
TextDrawShowForPlayer(playerid, Ingame_gTD[4]);
TextDrawShowForPlayer(playerid, Ingame_gTD[5]);
TextDrawShowForPlayer(playerid, Ingame_gTD[6]);
TextDrawShowForPlayer(playerid, Ingame_gTD[7]);
TextDrawShowForPlayer(playerid, Ingame_gTD[8]);

return 1;
}[/pawno]
Naslov: Odg: Warning
Poruka od: Fr0z3n poslato Mart 05, 2020, 19:15:39 POSLE PODNE
Sve sam resio sto se tice toga, ali sad izlazi jos jedan warn koji je na liniji gde je ovo new string
[pawn]public OnGameModeInit()
{
Create3DTextLabel("{00CED1}Dobro dosli na MatrixGaming,\nUkoliko vam je potrebna pomoc/nPitajte na {F3FF02}/askq" , 0xFFFF0AA,  1625.0516,-2334.4111,13.5396, 20,0,3);

    new string[1026];

   skinlist = LoadModelSelectionMenu("sc_Base/selections/skinovi.txt");
   skinlist1 = LoadModelSelectionMenu("sc_Base/selections/skinovi.txt");
   gitaralist = LoadModelSelectionMenu("sc_Base/selections/gitareatt.txt");
   obj1list = LoadModelSelectionMenu("sc_Base/selections/attachments1.txt");
   obj2list = LoadModelSelectionMenu("sc_Base/selections/attachments2.txt");
   gov1list = LoadModelSelectionMenu("sc_Base/selections/attachmentsgov1.txt");
   gov2list = LoadModelSelectionMenu("sc_Base/selections/attachmentsgov2.txt");

   for(new b = 0; b < sizeof(AD); b++)
   {[/pawn]
Naslov: Odg: Warning
Poruka od: V01D poslato Mart 05, 2020, 20:17:29 POSLE PODNE
Pa poravnaj samo kod..................................  :'( :'( :'( :'( ??? ??? ??? ???
Naslov: Odg: Warning
Poruka od: Fr0z3n poslato Mart 05, 2020, 23:05:10 POSLE PODNE
Citat: V01D poslato Mart 05, 2020, 20:17:29 POSLE PODNE
Pa poravnaj samo kod..................................  :'( :'( :'( :'( ??? ??? ??? ???

Slusaj brt sve sam probao, mislim da je bug neki ali sta god da stavim na taj line na koji izadje warn uvek izadje recimo da na taj lajn stavim //123 on ce opet da bude warn na tom line nez sta da radim??
Naslov: Odg: Warning
Poruka od: algorhitmically poslato Mart 06, 2020, 09:46:19 PRE PODNE
[pawn]
YCMD:tdon(playerid, params[], help)
{
    for(new i; i < 9; TextDrawShowForPlayer(playerid, Ingame_gTD[i++]));
    return 1;
}
[/pawn]