Skripta koju koristim:Raven's RolePlay v1.1
Detaljan opis problema: Nece da mi radi Clickable TD . Napravio sam i public OnPlayerClickTextdraw, u pitanju je mp3 sistem . kada kucam mp3 pokaze se textdraw ali kao da nije clickable
Dio skripte:dacu sta treba
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[POMOC] ClickablwTextDraw
237
pregleda
5
postova
8. Jan. 2014.
Da , dodao sam
radios = TextDrawCreate(205.000000, 80.937500, "Radio S");
TextDrawLetterSize(radios, 0.483499, 1.634999);
TextDrawAlignment(radios, 1);
TextDrawColor(radios, -1);
TextDrawSetShadow(radios, 0);
TextDrawSetOutline(radios, 0);
TextDrawBackgroundColor(radios, 51);
TextDrawFont(radios, 2);
TextDrawSetProportional(radios, 1);
TextDrawSetSelectable(radios, true); , ovo je jedan textdraw, tako su svi uradjeni . I kada kucam /mp3 lepo mi iskoci TD ali nece da me freezuje i da izbaci strelicu .....public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
new string;
if(clickedid == radios)
{
unistimp3(playerid);
PlayAudioStreamForPlayer(playerid, "http://radios64.streaming.rs:9100/listen.pls");
SendClientMessage(playerid, COLOR_ASKQ, "{FF9933} Slusate Radio S ");
CancelSelectTextDraw(playerid);
return 1;
}
return 1;
}if(strcmp(cmd,"/mp3", true) == 0) //By Vukasin
{
pokazmip3(playerid);
return 1;
}public pokazimp3(playerid)
{
TextDrawShowForPlayer(playerid, zelenodugme);
TextDrawShowForPlayer(playerid, crvenodugme);
TextDrawShowForPlayer(playerid, mp3okvir);
TextDrawShowForPlayer(playerid, mp3ekran);
TextDrawShowForPlayer(playerid, radios);
TextDrawShowForPlayer(playerid, coolradio);
TextDrawShowForPlayer(playerid, mp3natpis);
TextDrawShowForPlayer(playerid, challengernatpis);
TextDrawShowForPlayer(playerid, tdi);
TextDrawShowForPlayer(playerid, morava);
TextDrawShowForPlayer(playerid, jvetar);
return 1;
}8. Jan. 2014.
public pokazimp3(playerid)
{
TextDrawShowForPlayer(playerid, zelenodugme);
TextDrawShowForPlayer(playerid, crvenodugme);
TextDrawShowForPlayer(playerid, mp3okvir);
TextDrawShowForPlayer(playerid, mp3ekran);
TextDrawShowForPlayer(playerid, radios);
TextDrawShowForPlayer(playerid, coolradio);
TextDrawShowForPlayer(playerid, mp3natpis);
TextDrawShowForPlayer(playerid, challengernatpis);
TextDrawShowForPlayer(playerid, tdi);
TextDrawShowForPlayer(playerid, morava);
TextDrawShowForPlayer(playerid, jvetar);
SelectTextDraw(playerid, 0xAA3333AA);
return 1;
}dodaj ovako ako nece javi.
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava