bug with he /r(adio)
#1

BUG WITH /radio ....HELP ME brothers... I am LSPD leader but i cant speak on /r ....say "Your Faction doesn't use radio" ?! WTF

Код:
Quote:
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0) { if(IsPlayerConnected(playerid)) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SyntaxMessage(playerid, "(/r)adio [radio chat]"); return 1; } if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0) { if(FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 1 || FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 2 || FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 3 || FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 4 || FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 5 || FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 8) { if (PlayerInfo[playerid][pDivision] == 0) format(string, sizeof(string), "| %s %s: %s, over. **", GetPlayerRank(playerid),PlayerName(playerid), result); else format(string, sizeof(string), "|%s %s %s: %s, over. **", DivisionInfo[PlayerInfo[playerid][pMember]][PlayerInfo[playerid][pDivision]][divisionTag], GetPlayerRank(playerid),PlayerName(playerid), result); if(FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 8) SendRadioMessage(PlayerInfo[playerid][pMember], TPARAMEDIC, string); else SendRadioMessage(PlayerInfo[playerid][pMember], TEAM_BLUE_COLOR, string); if(ThiefText[playerid] != Text3D:INVALID_3DTEXT_ID) return 1; format(string, sizeof(string), "[Toki-Voki] %s, over.", result); if(FactionInfo[ PlayerInfo[playerid][pMember] ][FactionType] == 8) SetPlayerChatBubble(playerid,string,TPARAMEDIC,30.0,10000); else SetPlayerChatBubble(playerid,string,TEAM_BLUE_COLOR,30.0,10000); } else return SendClientMessage(playerid, GREY, " Your faction doesn't use a radio."); } } else { SendClientMessage(playerid, GREY, " You are not part of a team."); } return 1; }
Reply
#2

Are you sure your faction is listed so you can use /r?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)