Započeo JackScript_
•3. Jul 2020.• ZaključanoPomoc oko tdova
785
pregleda
10
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
29
Postovi:
3
Teme:
Pridružio se:Jul 2020
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):
Deo skripte(ovo je cmd):
Debug iz server_log: //
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/gallery/7lzCfyv
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
Godfather
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,602
Postovi:
65
Teme:
Pridružio se:Nov. 2015
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
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
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
106
Postovi:
5
Teme:
Pridružio se:Jun 2020
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
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..
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
29
Postovi:
3
Teme:
Pridružio se:Jul 2020
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..
Street Runner
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
21
Postovi:
2
Teme:
Pridružio se:Jun 2020
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 = );
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 = );
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
686
Postovi:
39
Teme:
Pridružio se:Dec. 2018
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
29
Postovi:
3
Teme:
Pridružio se:Jul 2020
3. Jul 2020.
Quote from July 3, 2020, 6:54 pm:
ja sam to radio xd, proveri da li si te stavio
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
29
Postovi:
3
Teme:
Pridružio se:Jul 2020
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.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava