SA-MP Forums Archive
[Ajuda] TextDraws nгo funcionando :? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDraws nгo funcionando :? (/showthread.php?tid=581863)



TextDraws nгo funcionando :? - ScripterInicianteBR - 16.07.2015

Pessoal :

Warnings :

pawn Код:
C:\Users\Marcio Siqueira\Desktop\Projeto Gamemode ъnico por Matheus_Siqueira\gamemodes\Projeto.pwn(39) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.


News :

pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
OnGameModeInit;

pawn Код:
Textdraw0 = TextDrawCreate(196.799942, 369.599945, "Brasil");
    TextDrawLetterSize(Textdraw0, 0.544400, 2.301866);
    TextDrawAlignment(Textdraw0, 1);
    TextDrawColor(Textdraw0, 218169258);
    TextDrawSetShadow(Textdraw0, 0);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawBackgroundColor(Textdraw0, 51);
    TextDrawFont(Textdraw0, 3);
    TextDrawSetProportional(Textdraw0, 1);

    Textdraw1 = TextDrawCreate(256.800140, 371.093383, "Play");
    TextDrawLetterSize(Textdraw1, 0.643600, 2.100267);
    TextDrawAlignment(Textdraw1, 1);
    TextDrawColor(Textdraw1, 16711935);
    TextDrawSetShadow(Textdraw1, 0);
    TextDrawSetOutline(Textdraw1, 1);
    TextDrawBackgroundColor(Textdraw1, 51);
    TextDrawFont(Textdraw1, 3);
    TextDrawSetProportional(Textdraw1, 1);

    Textdraw2 = TextDrawCreate(307.200073, 372.586578, "Faster");
    TextDrawLetterSize(Textdraw2, 0.697199, 1.958402);
    TextDrawTextSize(Textdraw2, 39.999996, -41.813335);
    TextDrawAlignment(Textdraw2, 1);
    TextDrawColor(Textdraw2, -65281);
    TextDrawSetShadow(Textdraw2, 0);
    TextDrawSetOutline(Textdraw2, 1);
    TextDrawBackgroundColor(Textdraw2, 51);
    TextDrawFont(Textdraw2, 3);
    TextDrawSetProportional(Textdraw2, 1);

    Textdraw3 = TextDrawCreate(220.000015, 391.253326, "www.brasilplayfaster.forumeiros.com");
    TextDrawLetterSize(Textdraw3, 0.232399, 1.525333);
    TextDrawAlignment(Textdraw3, 1);
    TextDrawColor(Textdraw3, -2139062017);
    TextDrawSetShadow(Textdraw3, 0);
    TextDrawSetOutline(Textdraw3, 1);
    TextDrawBackgroundColor(Textdraw3, 51);
    TextDrawFont(Textdraw3, 1);
    TextDrawSetProportional(Textdraw3, 1);

    Textdraw4 = TextDrawCreate(361.600006, 362.133239, "RPG");
    TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw4, 1);
    TextDrawColor(Textdraw4, 255);
    TextDrawSetShadow(Textdraw4, 0);
    TextDrawSetOutline(Textdraw4, 1);
    TextDrawBackgroundColor(Textdraw4, 51);
    TextDrawFont(Textdraw4, 1);
    TextDrawSetProportional(Textdraw4, 1);

    Textdraw5 = TextDrawCreate(269.599639, 403.946716, "v1.0a");
    TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
    TextDrawAlignment(Textdraw5, 1);
    TextDrawColor(Textdraw5, 255);
    TextDrawSetShadow(Textdraw5, 0);
    TextDrawSetOutline(Textdraw5, 1);
    TextDrawBackgroundColor(Textdraw5, 51);
    TextDrawFont(Textdraw5, 1);
    TextDrawSetProportional(Textdraw5, 1);
    return 1;
OnPlayerConnect;

pawn Код:
TextDrawShowForPlayer( playerid, Textdraw0 );
    TextDrawShowForPlayer( playerid, Textdraw1 );
    TextDrawShowForPlayer( playerid, Textdraw2 );
    TextDrawShowForPlayer( playerid, Textdraw3 );
    TextDrawShowForPlayer( playerid, Textdraw4 );
    TextDrawShowForPlayer( playerid, Textdraw5 );
Expecificaзгo: eu adicionei tudo certinho (eu acho) , estб dando apenas "1" Warning , ai logo no SA-MP e nгo estб pegando ... soluзхes ?


Re: TextDraws nгo funcionando :? - Cleyson - 16.07.2015

Quote:
Originally Posted by ScripterInicianteBR
Посмотреть сообщение
eu adicionei tudo certinho (eu acho)
Nгo estб adicionando certinho entгo, pois o cуdigo esta correto.

@Edit Qual a linha 39 ?


Re: TextDraws nгo funcionando :? - ScripterInicianteBR - 16.07.2015

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Nгo estб adicionando certinho entгo, pois o cуdigo esta correto.
O Que devo fazer para concertar

@Edit , a linha 39 й essa : Textdraw0 = TextDrawCreate(196.799942, 369.599945, "Brasil");

EDIT: http://prntscr.com/7t86bh | http://prntscr.com/7t86bh | http://prntscr.com/7t86bh


Re: TextDraws nгo funcionando :? - D3sconn3ct - 16.07.2015

tira esse return 1; depois de addplayerclass


Re: TextDraws nгo funcionando :? - Cleyson - 16.07.2015

tira esse return 1; da linha 37


Re: TextDraws nгo funcionando :? - ScripterInicianteBR - 16.07.2015

D3sconn3ct & Cleyson muito obrigado pegou direitinho *-* http://prntscr.com/7t87rz

@Edit , o que devo aprender pra colocar Horas em cima do dinheiro ($$) ?


Re: TextDraws nгo funcionando :? - Welconha - 16.07.2015

Agr sim, boa...


Re: TextDraws nгo funcionando :? - ScripterInicianteBR - 16.07.2015

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Nгo estб adicionando certinho entгo, pois o cуdigo esta correto.

@Edit Qual a linha 39 ?
Quote:
Originally Posted by Welconha
Посмотреть сообщение
Agr sim, boa...
vlw maninho