SA-MP Forums Archive
[Ajuda] Text Do Morro Nгo Esta Sumindo - 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] Text Do Morro Nгo Esta Sumindo (/showthread.php?tid=435451)



Text Do Morro Nгo Esta Sumindo - Wellington1999 - 06.05.2013

pawn Код:
if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
            {
                    format(GDPstring,sizeof(GDPstring),"~b~~h~ROTA~n~~w~Pontos: ~y~%d",MorroPontos[2]);
                    TextDrawSetString(TextMorro1, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~Groove Street~n~~w~Pontos: ~y~%d",MorroPontos[14]);
                    TextDrawSetString(TextMorro3, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~y~Los Vagos~n~~w~Pontos: ~y~%d",MorroPontos[18]);
                    TextDrawSetString(TextMorro4, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~r~~h~Comando Vermelho~n~~w~Pontos: ~y~%d",MorroPontos[19]);
                    TextDrawSetString(TextMorro5, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~b~~h~~h~Los Aztecas~n~~w~Pontos: ~y~%d",MorroPontos[5]);
                    TextDrawSetString(TextMorro6, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~p~Ballas~n~~w~Pontos: ~y~%d",MorroPontos[17]);
                    TextDrawSetString(TextMorro10, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~~h~PCC~n~~w~Pontos: ~y~%d",MorroPontos[20]);
                    TextDrawSetString(TextMorro11, GDPstring);
                    //TextDrawShowForPlayer(i, TextMorro2);
                    TextDrawShowForPlayer(i, TextMorro1);
                    TextDrawShowForPlayer(i, TextMorro3);
                    TextDrawShowForPlayer(i, TextMorro4);
                    TextDrawShowForPlayer(i, TextMorro5);
                    TextDrawShowForPlayer(i, TextMorro6);
                    /*TextDrawShowForPlayer(i, TextMorro7);
                    TextDrawShowForPlayer(i, TextMorro8);
                    TextDrawShowForPlayer(i, TextMorro9);*/

                    TextDrawShowForPlayer(i, TextMorro10);
                    TextDrawShowForPlayer(i, TextMorro11);
Ajuda ae ele n desaparece quando sai do IsPlayerInMorro


Re: Text Do Morro Nгo Esta Sumindo - ViictorDaay- - 06.05.2013

pawn Код:
if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
            {
                    format(GDPstring,sizeof(GDPstring),"~b~~h~ROTA~n~~w~Pontos: ~y~%d",MorroPontos[2]);
                    TextDrawSetString(TextMorro1, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~Groove Street~n~~w~Pontos: ~y~%d",MorroPontos[14]);
                    TextDrawSetString(TextMorro3, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~y~Los Vagos~n~~w~Pontos: ~y~%d",MorroPontos[18]);
                    TextDrawSetString(TextMorro4, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~r~~h~Comando Vermelho~n~~w~Pontos: ~y~%d",MorroPontos[19]);
                    TextDrawSetString(TextMorro5, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~b~~h~~h~Los Aztecas~n~~w~Pontos: ~y~%d",MorroPontos[5]);
                    TextDrawSetString(TextMorro6, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~p~Ballas~n~~w~Pontos: ~y~%d",MorroPontos[17]);
                    TextDrawSetString(TextMorro10, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~~h~PCC~n~~w~Pontos: ~y~%d",MorroPontos[20]);
                    TextDrawSetString(TextMorro11, GDPstring);
                    //TextDrawShowForPlayer(i, TextMorro2);
                    TextDrawShowForPlayer(i, TextMorro1);
                    TextDrawShowForPlayer(i, TextMorro3);
                    TextDrawShowForPlayer(i, TextMorro4);
                    TextDrawShowForPlayer(i, TextMorro5);
                    TextDrawShowForPlayer(i, TextMorro6);
                    /*TextDrawShowForPlayer(i, TextMorro7);
                    TextDrawShowForPlayer(i, TextMorro8);
                    TextDrawShowForPlayer(i, TextMorro9);*/

                    TextDrawShowForPlayer(i, TextMorro10);
                    TextDrawShowForPlayer(i, TextMorro11);
                    }
                    else if {
               
                   
                    TextDrawHideForPlayer( playerid , TextMorro1[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro3[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro4[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro5[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro6[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro10[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro11[playerid] );
                   
                       }
Ve se dar certo.


Re: Text Do Morro Nгo Esta Sumindo - ProKillerpa - 06.05.2013

Quote:
Originally Posted by ViictorDaay-
Посмотреть сообщение
pawn Код:
if(IsPlayerInMorro(i) && Morro[Guerra] >= 1)
            {
                    format(GDPstring,sizeof(GDPstring),"~b~~h~ROTA~n~~w~Pontos: ~y~%d",MorroPontos[2]);
                    TextDrawSetString(TextMorro1, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~Groove Street~n~~w~Pontos: ~y~%d",MorroPontos[14]);
                    TextDrawSetString(TextMorro3, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~y~Los Vagos~n~~w~Pontos: ~y~%d",MorroPontos[18]);
                    TextDrawSetString(TextMorro4, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~r~~h~Comando Vermelho~n~~w~Pontos: ~y~%d",MorroPontos[19]);
                    TextDrawSetString(TextMorro5, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~b~~h~~h~Los Aztecas~n~~w~Pontos: ~y~%d",MorroPontos[5]);
                    TextDrawSetString(TextMorro6, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~p~Ballas~n~~w~Pontos: ~y~%d",MorroPontos[17]);
                    TextDrawSetString(TextMorro10, GDPstring);
                    format(GDPstring,sizeof(GDPstring),"~g~~h~~h~PCC~n~~w~Pontos: ~y~%d",MorroPontos[20]);
                    TextDrawSetString(TextMorro11, GDPstring);
                    //TextDrawShowForPlayer(i, TextMorro2);
                    TextDrawShowForPlayer(i, TextMorro1);
                    TextDrawShowForPlayer(i, TextMorro3);
                    TextDrawShowForPlayer(i, TextMorro4);
                    TextDrawShowForPlayer(i, TextMorro5);
                    TextDrawShowForPlayer(i, TextMorro6);
                    /*TextDrawShowForPlayer(i, TextMorro7);
                    TextDrawShowForPlayer(i, TextMorro8);
                    TextDrawShowForPlayer(i, TextMorro9);*/

                    TextDrawShowForPlayer(i, TextMorro10);
                    TextDrawShowForPlayer(i, TextMorro11);
                    }
                    else if {
               
                   
                    TextDrawHideForPlayer( playerid , TextMorro1[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro3[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro4[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro5[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro6[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro10[playerid] );
                    TextDrawHideForPlayer( playerid , TextMorro11[playerid] );
                   
                       }
Ve se dar certo.
Nгo darб certo, e porque else if? nгo й preciso.
Faзa uma coordenada de quando sair dela, ou entгo poste as coordenadas e a public IsPlayerInMorro


Re: Text Do Morro Nгo Esta Sumindo - ViictorDaay- - 06.05.2013

Ai meu deus, else if = caso nao for, se o cara tiver no morro ele executa o if normal se o cara nгo tiver no morro ele executa o else if, ou vocк quer criar outro
PHP код:
if(IsPlayerInMorro(i) && Morro[Guerra] >= 1
Mais invez de 1 o 0,ai me poupe,

Att: Nгo existe coordenada de quando sai dela porque tem vбrios pontos, й a public IsPlayerInMorro nгo tem nada haver com бs textdraws.