Zaključano

Pomoc oko tdova

Započeo JackScript_
pre 5 godina
714
pregleda
10
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
JackScript_
Wheel Man
pre 5 godina
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
Enforcer
pre 5 godina
Proveri jesi li izabrao dobre tdove, da nisi neke druge
Grebovic_Danijel
Godfather
pre 5 godina
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
Shot Caller
pre 5 godina
ᗪ卂乂 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_
Wheel Man
pre 5 godina
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
Street Runner
pre 5 godina
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
Underboss
pre 5 godina
ja sam to radio xd, proveri da li si te stavio
TIMIC
Enforcer
pre 5 godina
Menjas boju na 10 textdrawa dok ponovo show-as samo 8 textdrawa, show-aj sve tdove na koje promenis boju.
JackScript_
Wheel Man
pre 5 godina
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_
Wheel Man
pre 5 godina
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