Anketa
Pitanje:
Pomoc?
Opcije 1: Da?
glasova: 0
Opcije 2: Ne?
glasova: 0
Skripta koju koristim:LK/UP
Detaljan opis problema:Imam neki Error oko TextDrawShowForPlayer(imetd, bojatd); , tj. Warning imam ... i ne zelim da se menjaju boje svima.
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): problem.. YCMD:bojatd(playerid, params[],help)
{
#pragma unused help
#pragma unused params
new colortd[128];
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""SRWBOJA"CRAZY"BELA"HOME ~ Moras se ulogovati da bi koristio ovu komandu!");
if(sscanf(params, "s[24]", colortd)) return SCM(playerid,-1,""BELA"/colortd [ Opcija - orange ,ljubicasta ,zelena,crvena ]");
if(strcmp(colortd, "orange", true) == 0)
{
TextDrawColor(SPORUKE[0], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[0], 0xDBB132FF);
TextDrawColor(SPORUKE[1], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[1], 0xDBB132FF);
TextDrawColor(SPORUKE[2], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[2], 0xDBB132FF);
TextDrawColor(SPORUKE[3], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[3], 0xDBB132FF);
TextDrawColor(SPORUKE[4], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[4], 0xDBB132FF);
TextDrawColor(SPORUKE[5], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[5], 0xDBB132FF);
TextDrawColor(SPORUKE[6], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[6], 0xDBB132FF);
TextDrawColor(SPORUKE[7], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[7], 0xDBB132FF);
TextDrawColor(SPORUKE[8], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[8], 0xDBB132FF);
TextDrawColor(SPORUKE[20], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[20], 0xDBB132FF);
TextDrawColor(SPORUKE[21], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[21], 0xDBB132FF);
TextDrawColor(SPORUKE[22], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[22], 0xDBB132FF);
TextDrawColor(SPORUKE[23], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[23], 0xDBB132FF);
TextDrawColor(SPORUKE[24], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[24], 0xDBB132FF);
TextDrawColor(SPORUKE[25], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[25], 0xDBB132FF);
TextDrawColor(SPORUKE[26], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[26], 0xDBB132FF);
TextDrawColor(SPORUKE[33], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[33], 0xDBB132FF);
TextDrawColor(SPORUKE[34], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[34], 0xDBB132FF);
TextDrawColor(SPORUKE[46], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[46], 0xDBB132FF);
TextDrawColor(SPORUKE[48], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[48], 0xDBB132FF);
TextDrawColor(SPORUKE[49], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[49], 0xDBB132FF);
TextDrawColor(SPORUKE[50], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[50], 0xDBB132FF);
TextDrawColor(SPORUKE[51], 0xDBB132FF);
TextDrawShowForPlayer(SPORUKE[51], 0xDBB132FF);
}
else return SCM(playerid, -1,""SRWBOJA"CRAZY"BELA"HOME ~ [GRESKA] "SIVA"Nepoznato ime boje!");
return 1;
}
Koliko ti puta moramo reci da posaljes koji je warning i koja je linija? Poravnaj linije...
EVO izvini zaboravio sam :(
Evo brate Compailuje se ne znam napamet :-X
TextDrawShowForPlayer(SPORUKE[0], 0xDBB132FF);
Promijeni u
TextDrawShowForPlayer(playerid, SPORUKE[0]);
Tako i za ostale td
aLI MENJA SE SVIMA BOJA?
Shvataš da koristiš global textdrawe i da kad neko kuca bojatd crvena svima ce bit crvena.. ?
Da
Pa onda kroz for petlju Max_Players i umjesto playerid pises i
https://imgur.com/a/Vonql
Evo ti
@SejnurHD
Kako si definisao SPORUKE?
new Text:SPORUKE[75];
i tamo kod OnPlayerSpawn stavio
TextDrawShowForPlayer(playerid, SPORUKE[0]); i TD
Pa ako si stavio na onplayerspawn da mu prikaze tdove msm da pod komandu ne trebas ponovo textdrawshowforplayer,samo textdrawcolor
Kad ubacujem samo TextDrawColor(imetd, bojatd);
Iste su TDovi dok si u IN GAME kad ides relog ide ta boja pa se menja svima :-[
[pawn]TextDrawShowForPlayer(SPORUKE[6], 0xDBB132FF);[/pawn]
Pa gdje će nešto ovakvo raditi ? Što će ti show, izbaci show-ove.
TextDrawForPlayer?
TextDrawShowForPlayer skloni.
I