12.02.2014, 21:13
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; }