Pomoc oko tdova

Započeo JackScript_
3. Jul 2020. Zaključano
736
pregleda
10
postova
JackScript_
2
Wheel Man
3. Jul 2020.
Problem: Ubacio sam sistem tdboje,kada ukucam /bojatd  prmojene se samo neki tdovi iako su svi define-ovani u skripti
Deo skripte(ovo je new):
new Text:TDEditor_TD;

Deo skripte(ovo je cmd):

CMD:bojatd(playerid, params[])
{
    new stringic;
    if(sscanf(params, "s", stringic)) return KORISCENJE(playerid, "/bojatd [crvena-default-zuta-narandzasta-roza]");
    if(strcmp(stringic, "crvena", true) == 0)
    {
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawColor(TDEditor_TD, 0xDB1605FF);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
    }
    if(strcmp(stringic, "default", true) == 0)
    {
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 0xFFFFFFFF);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawColor(TDEditor_TD, 7596799);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
    }
    if(strcmp(stringic, "zuta", true) == 0)
    {
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawColor(TDEditor_TD, 0xFFFF00AA);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
    }
    if(strcmp(stringic, "narandzasta", true) == 0)
    {
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawColor(TDEditor_TD, 0xFFAF00FF);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
    }
    if(strcmp(stringic, "roza", true) == 0)
    {
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawColor(TDEditor_TD, 0xDF0172FF);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
        TextDrawShowForPlayer(playerid,TDEditor_TD);
    }
    SendClientMessage(playerid,-1,"{37A4DB} {FFFFFF}Uspesno ste promenili boju TD-ova.");
    return 1;
}

Debug iz server_log: //
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/gallery/7lzCfyv
TIMIC
4
Enforcer
3. Jul 2020.
Proveri jesi li izabrao dobre tdove, da nisi neke druge
Grebovic_Danijel
5
Godfather
3. Jul 2020.
Nisi ubacio sve iz arraya...

Ideš od 1 do 37 i onda ce sve samo ostavi crne boxove

vidiš ti ideš 1 pa posle njega 17...

TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
i tako do 37
inquisitiveemmett
4
Shot Caller
3. Jul 2020.
ᗪ卂乂 wrote on July 3, 2020, 4:47 pm:
Nisi ubacio sve iz arraya...

Ideš od 1 do 37 i onda ce sve samo ostavi crne boxove

vidiš ti ideš 1 pa posle njega 17...

TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
i tako do 37

Pa nece da mu sve tdove promenit nego samo one koji nisu black..
JackScript_
2
Wheel Man
3. Jul 2020.
inquisitiveemmett wrote on July 3, 2020, 5:07 pm:
Pa nece da mu sve tdove promenit nego samo one koji nisu black..
Sve radi kada odem relog,ne vidim razlog zasto se sada ne pojavljuju u in game iste sekunde kad i ostali
Diablo Mapper
2
Street Runner
3. Jul 2020.
E ovako evo ti opsirno 🙂
Ako ubacujes od 0 TDove ako ih mod vec nema a i slican ti je postupak i sa modom koji ima samo ih zameni ovako:
napravi jedan deo
//======VARIJABLE/TEXTDRAVOVOI(KAKO TI HOCES)=========================//
tu stavi ono new TextDraw(kako ti vec pise..
onda ides u GamemodeInit tu ubacis ovo textdraw ono znas drugo
onda odes onplayerspawn u kucas ovako
TextDrawShowForPlayer(playerid, i kako ti se zovu ona prva rec pre = );
Scripter Vladimir
5
Underboss
3. Jul 2020.
ja sam to radio xd, proveri da li si te stavio
TIMIC
4
Enforcer
3. Jul 2020.
Menjas boju na 10 textdrawa dok ponovo show-as samo 8 textdrawa, show-aj sve tdove na koje promenis boju.
JackScript_
2
Wheel Man
3. Jul 2020.
Quote from July 3, 2020, 6:54 pm:
ja sam to radio xd, proveri da li si te stavio
U credits si matori <3
JackScript_
2
Wheel Man
3. Jul 2020.
Claus wrote on July 3, 2020, 8:09 pm:
Menjas boju na 10 textdrawa dok ponovo show-as samo 8 textdrawa, show-aj sve tdove na koje promenis boju.
Zahvaljujem <3

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha