[Ajuda] Minha TextDraw nгo aparece
#1

Salve galerinha, criei umas textdraws clicбveis aqui sу que elas nгo aparecem ao digitar o comando, sempre da "comando invalido" o mais louco й que compila tudo certinho espero que vocкs possam me ajudar.

Quote:

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;

Quote:

public OnGameModeInit()
{

Textdraw0 = TextDrawCreate(250.000000, 107.000000, "RADIO POP");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 0.000000, 10.000000);

Textdraw1 = TextDrawCreate(250.000000, 120.000000, "RADIO FUNK");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 0.000000, 10.000000);

Textdraw2 = TextDrawCreate(250.000000, 132.000000, "RADIO ROCK");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 3);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, 65535);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 0.000000, 10.000000);

Textdraw3 = TextDrawCreate(250.000000, 144.000000, "RADIO RAP");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 3);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -65281);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 0.000000, 10.000000);
TextDrawSetSelectable(Textdraw1, true);
TextDrawSetSelectable(Textdraw2, true);
TextDrawSetSelectable(Textdraw3, true);
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

Quote:

CMD:mp3a(playerid, params[])
{
SelectTextDraw(playerid, 0xC0C0C0AA);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == Textdraw1)
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == Textdraw2)
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
if(clickedid == Textdraw3)
{
PlayAudioStreamForPlayer(playerid, "http://109.235.67.25:8030/stream");
SendClientMessage(playerid, -1, "Vocк estб ouvindo Rбdio Pop");
Escondertexts(playerid);
}
return 1;
}

stock Escondertexts(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw1);
CancelSelectTextDraw(playerid);
return 1;
}

Reply
#2

Quote:
Originally Posted by Cycle
Посмотреть сообщение
Vк aн.
PHP код:
new Text:TXT[4];
public 
OnGameModeInit()
{
    
TXT[0] = TextDrawCreate(250.000000107.000000"RADIO POP");
    
TextDrawBackgroundColor(TXT[0], 255);
    
TextDrawFont(TXT[0], 3);
    
TextDrawLetterSize(TXT[0], 0.5000001.000000);
    
TextDrawColor(TXT[0], -16776961);
    
TextDrawSetOutline(TXT[0], 0);
    
TextDrawSetProportional(TXT[0], 1);
    
TextDrawSetShadow(TXT[0], 1);
    
TextDrawUseBox(TXT[0], 1);
    
TextDrawBoxColor(TXT[0], 255);
    
TextDrawTextSize(TXT[0], 0.00000010.000000);
    
TXT[1] = TextDrawCreate(250.000000120.000000"RADIO FUNK");
    
TextDrawBackgroundColor(TXT[1], 255);
    
TextDrawFont(TXT[1], 3);
    
TextDrawLetterSize(TXT[1], 0.5000001.000000);
    
TextDrawColor(TXT[1], 16711935);
    
TextDrawSetOutline(TXT[1], 0);
    
TextDrawSetProportional(TXT[1], 1);
    
TextDrawSetShadow(TXT[1], 1);
    
TextDrawUseBox(TXT[1], 1);
    
TextDrawBoxColor(TXT[1], 255);
    
TextDrawTextSize(TXT[1], 0.00000010.000000);
    
TXT[2] = TextDrawCreate(250.000000132.000000"RADIO ROCK");
    
TextDrawBackgroundColor(TXT[2], 255);
    
TextDrawFont(TXT[2], 3);
    
TextDrawLetterSize(TXT[2], 0.5000001.000000);
    
TextDrawColor(TXT[2], 65535);
    
TextDrawSetOutline(TXT[2], 0);
    
TextDrawSetProportional(TXT[2], 1);
    
TextDrawSetShadow(TXT[2], 1);
    
TextDrawUseBox(TXT[2], 1);
    
TextDrawBoxColor(TXT[2], 255);
    
TextDrawTextSize(TXT[2], 0.00000010.000000);
    
TXT[3] = TextDrawCreate(250.000000144.000000"RADIO RAP");
    
TextDrawBackgroundColor(TXT[3], 255);
    
TextDrawFont(TXT[3], 3);
    
TextDrawLetterSize(TXT[3], 0.5000001.000000);
    
TextDrawColor(TXT[3], -65281);
    
TextDrawSetOutline(TXT[3], 0);
    
TextDrawSetProportional(TXT[3], 1);
    
TextDrawSetShadow(TXT[3], 1);
    
TextDrawUseBox(TXT[3], 1);
    
TextDrawBoxColor(TXT[3], 255);
    
TextDrawTextSize(TXT[3], 0.00000010.000000);
    
TextDrawSetSelectable(TXT[1], true);
    
TextDrawSetSelectable(TXT[2], true);
    
TextDrawSetSelectable(TXT[3], true);
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
CMD:mp3a(playerid)
{
    
SelectTextDraw(playerid0xC0C0C0AA);
    for(new 
04i++)
    {
        
TextDrawShowForPlayer(playeridTXT[i]);
    }
    return 
1;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == TXT[0])
    {
        
PlayAudioStreamForPlayer(playerid"http://109.235.67.25:8030/stream");
        
SendClientMessage(playerid, -1"Vocк estб ouvindo Rбdio Pop");
        
Escondertexts(playerid);
    }
    if(
clickedid == TXT[1])
    {
        
PlayAudioStreamForPlayer(playerid"http://109.235.67.25:8030/stream");
        
SendClientMessage(playerid, -1"Vocк estб ouvindo Rбdio Pop");
        
Escondertexts(playerid);
    }
    if(
clickedid == TXT[2])
    {
        
PlayAudioStreamForPlayer(playerid"http://109.235.67.25:8030/stream");
        
SendClientMessage(playerid, -1"Vocк estб ouvindo Rбdio Pop");
        
Escondertexts(playerid);
    }
    if(
clickedid == TXT[3])
    {
        
PlayAudioStreamForPlayer(playerid"http://109.235.67.25:8030/stream");
        
SendClientMessage(playerid, -1"Vocк estб ouvindo Rбdio Pop");
        
Escondertexts(playerid);
    }
    return 
1;
}
stock Escondertexts(playerid)
{    
    
CancelSelectTextDraw(playerid);
    for(new 
04i++)
    {
        
TextDrawHideForPlayer(playeridTXT[i]);
    }
    return 
1;

Compilou mas continua a dar comando invбlido.
Reply
#3

Que processador de comandos tu usa?
Reply
#4

ZCMD
Reply
#5

Reveja seu cуdigo, pois o do Cycle estб tudo certo
Reply
#6

Realmente o erro foi meu, me desculpem gastar seu tempo assim, simplesmente eu fui muito burro e errei o nome do gm no server.cfg
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)