Problem TD!

Započeo jovan maestro, Jun 30, 2018, 10:22:21 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): vaš odgovor Ubacio sam bojatd komandu i radi mi sve kada udjem na server, kucam /bojatd crvena. Sve je u redu radi, ali kada udjem u vozilo brzinomer mi je na default boju nije crven, kako to da uradim npr: da bude i on crven, ako kucam bojatd [xBER skripta] - Ukoliko bude trebala komanda poslacu!
Dio skripte: [ pawn ]Brzinomer[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/FuP8seg


Daj kodove /bojatd i brzinomjer textdrawove

To je jednostavno teze da se napravi jedino da napravis komandu /bojatdbrzinomera i onda da ti se menja kada budes u vozilu

Citat: ante2307 poslato Jun 30, 2018, 12:14:20 POSLE PODNE
Daj kodove /bojatd i brzinomjer textdrawove
YCMD:bojatd(playerid, params[], help)  //ova komanda mjenja boju odredenih textdravova u zeljenu boju.
{
    new bojatd[20];
    if(sscanf(params, "s[20]", bojatd)) return SendClientMessage(playerid, 0x0077C7FF, "KORISTI: {ffffff}/bojatd [crvena] [zelena] [roza] [zuta] [ljubicasta] [narandzasta] [default]");
    if(!strcmp(bojatd, "crvena"))
    {
    TextDrawColor(InGameTDs[0], 0xF81414AA);
    TextDrawColor(InGameTDs[1], 0xF81414AA);
   // TextDrawColor(BrzinomerBox1, 0xF81414AA);
   // TextDrawColor(BrzinomerBox2, 0xF81414AA);
   // TextDrawColor(BrzinomerBox3, 0xF81414AA);
   // TextDrawColor(BrzinomerBox4, 0xF81414AA);
   // TextDrawColor(BrzinomerBox6, 0xF81414AA);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox1);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox2);
   // TextDrawShowForPlayer(playerid,BrzinomerBox3);
   // TextDrawShowForPlayer(playerid,BrzinomerBox6);
    //TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u crvenu.");
    }
    else if(!strcmp(bojatd, "zelena"))
    {
    TextDrawColor(InGameTDs[0], 0x21DD00FF);
    TextDrawColor(InGameTDs[1], 0x21DD00FF);
   // TextDrawColor(BrzinomerBox1, 0x21DD00FF);
   // TextDrawColor(BrzinomerBox2, 0x21DD00FF);
   // TextDrawColor(BrzinomerBox3, 0x21DD00FF);
   // TextDrawColor(BrzinomerBox4, 0x21DD00FF);
   // TextDrawColor(BrzinomerBox6, 0x21DD00FF);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
   // TextDrawShowForPlayer(playerid,BrzinomerBox1);
   // TextDrawShowForPlayer(playerid,BrzinomerBox2);
    //TextDrawShowForPlayer(playerid,BrzinomerBox3);
   // TextDrawShowForPlayer(playerid,BrzinomerBox6);
   // TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u zelenu.");
    }
    else if(!strcmp(bojatd, "roza"))
    {
    TextDrawColor(InGameTDs[0], 0xFF66FFAA);
    TextDrawColor(InGameTDs[1], 0xFF66FFAA);
  //  TextDrawColor(BrzinomerBox1, 0xFF66FFAA);
  //  TextDrawColor(BrzinomerBox2, 0xFF66FFAA);
  //  TextDrawColor(BrzinomerBox3, 0xFF66FFAA);
  //  TextDrawColor(BrzinomerBox4, 0xFF66FFAA);
 //   TextDrawColor(BrzinomerBox6, 0xFF66FFAA);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox1);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox2);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox3);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox6);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u rozu.");
    }
    else if(!strcmp(bojatd, "zuta"))
    {
    TextDrawColor(InGameTDs[0], 0xFFC801C8);
    TextDrawColor(InGameTDs[1], 0xFFC801C8);
  //  TextDrawColor(BrzinomerBox1, 0xFFC801C8);
   // TextDrawColor(BrzinomerBox2, 0xFFC801C8);
  //  TextDrawColor(BrzinomerBox3, 0xFFC801C8);
  //  TextDrawColor(BrzinomerBox4, 0xFFC801C8);
  //  TextDrawColor(BrzinomerBox6, 0xFFC801C8);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox1);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox2);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox3);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox6);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u zutu.");
    }
    else if(!strcmp(bojatd, "ljubicasta"))
    {
    TextDrawColor(InGameTDs[0], 0xF9B7FFAA);
    TextDrawColor(InGameTDs[1], 0xF9B7FFAA);
  //  TextDrawColor(BrzinomerBox1, 0xF9B7FFAA);
  //  TextDrawColor(BrzinomerBox2, 0xF9B7FFAA);
  //  TextDrawColor(BrzinomerBox3, 0xF9B7FFAA);
  //  TextDrawColor(BrzinomerBox4, 0xF9B7FFAA);
  //  TextDrawColor(BrzinomerBox6, 0xF9B7FFAA);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox1);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox2);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox3);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox6);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u ljubicastu.");
    }
    else if(!strcmp(bojatd, "narandzasta"))
    {
    TextDrawColor(InGameTDs[0], 0xFF9900AA);
    TextDrawColor(InGameTDs[1], 0xFF9900AA);
  //  TextDrawColor(BrzinomerBox1, 0xFF9900AA);
  //  TextDrawColor(BrzinomerBox2, 0xFF9900AA);
  //  TextDrawColor(BrzinomerBox3, 0xFF9900AA);
  //  TextDrawColor(BrzinomerBox4, 0xFF9900AA);
  //  TextDrawColor(BrzinomerBox6, 0xFF9900AA);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox1);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox2);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox3);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox6);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u narandzastu.");
    }
    else if(!strcmp(bojatd, "default"))
    {
    TextDrawColor(InGameTDs[0], 0x0077C7FF);
    TextDrawColor(InGameTDs[1], 0x0077C7FF);
   // TextDrawColor(BrzinomerBox1, 0x0077C7FF);
  //  TextDrawColor(BrzinomerBox2, 0x0077C7FF);
  //  TextDrawColor(BrzinomerBox3, 0x0077C7FF);
  //  TextDrawColor(BrzinomerBox4, 0x0077C7FF);
  //  TextDrawColor(BrzinomerBox6, 0x0077C7FF);
    TextDrawShowForPlayer(playerid,InGameTDs[0]);
    TextDrawShowForPlayer(playerid,InGameTDs[1]);
  //  TextDrawShowForPlayer(playerid,BrzinomerBox1);
////    TextDrawShowForPlayer(playerid,BrzinomerBox2);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox3);
 //   TextDrawShowForPlayer(playerid,BrzinomerBox6);
//    TextDrawShowForPlayer(playerid,BrzinomerBox4);
    SendClientMessage(playerid, -1, "Promenili ste boju tdova u default-u/plavu.");
    }
    SendClientMessage(playerid,-1,""COL_BS"BALKAN SOPRING: {FFFFFF}Uspesno ste promenili boju tdova.");
    return 1;
}

ja sam tu dodao // ali nece opet kad se login na srw izadje mi te linije

Pa kod te komande msm kod ostalih TextDrawColor.. Stavis i za Brzinomer.. ti si mozda stavio samo za ove ovako..
:.. Developer on New Town ..:
:.. Developer on Ambush Gaming ..:
:.. Developer on Sweet Gaming ..:
:.. Developer on Malaysia Community ..:
:.. Developer on Good Life Community ..:
:.. Developer on Balkan Universe ..:
:.. Developer on Smart Project ..:
:.. Developer in Srcu ..:

Citat: â—¾Deksaâ—¾ poslato Jun 30, 2018, 13:18:04 POSLE PODNE
Pa kod te komande msm kod ostalih TextDrawColor.. Stavis i za Brzinomer.. ti si mozda stavio samo za ove ovako..
Evo sad sam probao, izlazi mi kad se login a nisam usao u vozilo!
https://imgur.com/a/JGOxLPs