[Ajuda] TextDraws nгo funcionando :?
#1

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 ?
Reply
#2

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 ?
Reply
#3

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
Reply
#4

tira esse return 1; depois de addplayerclass
Reply
#5

tira esse return 1; da linha 37
Reply
#6

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

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

Agr sim, boa...
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)