[Ajuda] Algum problema nesse cуdigo?
#2

Quote:
Originally Posted by gugugrp
Посмотреть сообщение
Bom eu queria saber se hб algum erro neste cуdigo pуis quando digito ele os helpers nгo aparecem

Код:
	if (strcmp(cmd, "/helpers", true) == 0)
	{
		SendClientMessage(playerid, COR_HELPER, "|___[{00CC00}B{FFFF00}L{0000FF}G{058AFF}]___| Helpers Online |___[{00CC00}B{FFFF00}L{0000FF}G{058AFF}]___|:");
  		for(new i = 0; i < MAX_PLAYERS; i++)
		{
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][pHelper] > 0 && PlayerInfo[i][pHelper] < 152)
                {
                    new HelperLevel = PlayerInfo[i][pHelper];
            		GetPlayerName(i, sendername, sizeof(sendername));
            		if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 1)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}] - {0099FF}Modo{FFFFFF}:{FFFFFF} [{999900}Ajudando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            		if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 1)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}]{FFFFFF} - {0099FF}Modo{FFFFFF}:{FFFFFF} [{CC66FF}Jogando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
                    }
                    if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 50)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}] - {0099FF}Modo{FFFFFF}:{FFFFFF} [{999900}Ajudando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            		if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 50)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}]{FFFFFF} - {0099FF}Modo{FFFFFF}:{FFFFFF} [{CC66FF}Jogando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
                    }
                    if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >=80)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}] - {0099FF}Modo{FFFFFF}:{FFFFFF} [{999900}Ajudando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            		else if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 80)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}]{FFFFFF} - {0099FF}Modo{FFFFFF}:{FFFFFF} [{CC66FF}Jogando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
                    }
                    if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >=100)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}] - {0099FF}Modo{FFFFFF}:{FFFFFF} [{999900}Ajudando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            		else if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 100)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}]{FFFFFF} - {0099FF}Modo{FFFFFF}:{FFFFFF} [{CC66FF}Jogando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
                    }
                    if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >=150)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}] - {0099FF}Modo{FFFFFF}:{FFFFFF} [{999900}Ajudando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            		else if(helpertrampando[i] == 0 && PlayerInfo[i][pHelper] >= 150)
            		{
            			format(string, sizeof(string), "{0099FF}Helper{FFFFFF}: %s - {0099FF}Nivel{FFFFFF}: [{02EA9E}%d{FFFFFF}]{FFFFFF} - {0099FF}Modo{FFFFFF}:{FFFFFF} [{CC66FF}Jogando{FFFFFF}]", sendername, HelperLevel);
                        SendClientMessage(playerid, COR_HELPER, string);
            		}
            	}
             }
        }
        return 1;
    	}
Pelo que eu percebi SendClientMessage estб muito grande

tente diminuir .

ex: vocк pode tira as cores
Reply


Messages In This Thread
Algum problema nesse cуdigo? - by gugugrp - 12.02.2014, 21:13
Re: Algum problema nesse cуdigo? - by Dieguinho - 12.02.2014, 21:42
Re: Algum problema nesse cуdigo? - by PT - 12.02.2014, 22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)