[Ajuda] Como Resolver Esse Warnig :S
#1

Ae galera to com um warning no gm й assim
Код:
C:\Documents and Settings\Casa\Desktop\Deivid Serve\filterscripts\pmxtraf.pwn(186) : warning 225: unreachable code
As linhas sгo

pawn Код:
if(PlayerInfo[playerid][pTorcida] == 0)
    {
     SetPlayerPos(playerid,1782.6263,-1347.4968,15.7421); //Policial
     SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Policial **");
     GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
     SetPlayerColor(playerid, 0x2641FEAA);
     SetPlayerFacingAngle(playerid,168.2801);//Angulo
     SetPlayerSkin(playerid,0);
     GivePlayerWeapon(playerid,31,99999);

     }
     
     return 0;

        if(PlayerInfo[playerid][pTorcida] == 1) //<<<- warning nessa linha
    {
     SetPlayerPos(playerid,-54.1648,2042.9808,23.6773); //Traficante
     SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Traficante **");
     GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
     SetPlayerColor(playerid, 0xEE7943);
     SetPlayerFacingAngle(playerid,168.2801);//Angulo
     SetPlayerSkin(playerid,29);
     GivePlayerWeapon(playerid,31,99999);

     }

    return 1;
E o warning e na segunda if ou seja na do traficante


pawn Код:
if(PlayerInfo[playerid][pTorcida] == 1) //<<<- warning nessa linha
    {
     SetPlayerPos(playerid,-54.1648,2042.9808,23.6773); //Traficante
     SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Traficante **");
     GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
     SetPlayerColor(playerid, 0xEE7943);
     SetPlayerFacingAngle(playerid,168.2801);//Angulo
     SetPlayerSkin(playerid,29);
     GivePlayerWeapon(playerid,31,99999);

     }

    return 1;
OBRIGADO A TODOS QUE TENTAR ME AJUDAR
Reply
#2

Remova o return 0; da linha Acima do erro
Reply
#3

pawn Код:
if(PlayerInfo[playerid][pTorcida] == 0)
    {
         SetPlayerPos(playerid,1782.6263,-1347.4968,15.7421); //Policial
         SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Policial **");
         GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
         SetPlayerColor(playerid, 0x2641FEAA);
         SetPlayerFacingAngle(playerid,168.2801);//Angulo
         SetPlayerSkin(playerid,0);
         GivePlayerWeapon(playerid,31,99999);
         return 1;
    }
    if(PlayerInfo[playerid][pTorcida] == 1) //<<<- warning nessa linha
    {
        SetPlayerPos(playerid,-54.1648,2042.9808,23.6773); //Traficante
        SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Traficante **");
        GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
        SetPlayerColor(playerid, 0xEE7943);
        SetPlayerFacingAngle(playerid,168.2801);//Angulo
        SetPlayerSkin(playerid,29);
        GivePlayerWeapon(playerid,31,99999);
        return 1;
    }
Reply
#4

pawn Код:
if(PlayerInfo[playerid][pTorcida] == 0)
     {
           SetPlayerPos(playerid,1782.6263,-1347.4968,15.7421); //Policial
           SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Policial **");
           GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
           SetPlayerColor(playerid, 0x2641FEAA);
           SetPlayerFacingAngle(playerid,168.2801);//Angulo
           SetPlayerSkin(playerid,0);
           GivePlayerWeapon(playerid,31,99999);
           return 1;
     }
     if(PlayerInfo[playerid][pTorcida] == 1) //<<<- warning nessa linha
     {
           SetPlayerPos(playerid,-54.1648,2042.9808,23.6773); //Traficante
           SendClientMessage(playerid, 0xC798FAAA, "** Bem Vindo Traficante **");
           GivePlayerMoney(playerid,1000000);//Dar 1000k quando entrar
           SetPlayerColor(playerid, 0xEE7943);
           SetPlayerFacingAngle(playerid,168.2801);//Angulo
           SetPlayerSkin(playerid,29);
           GivePlayerWeapon(playerid,31,99999);
           return 1;
     }
     else
     {
            return 0;
     }
Reply
#5

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Remova o return 0; da linha Acima do erro
cara vlws mesmo leks precisar so falar
deus certo so muito grato
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)