28.01.2012, 21:18
So the think is my /adjust cmd doesn't work properly. Please help
Its showing : You are not in family...
Код:
if(strcmp(cmd, "/adjust", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pFMember] == 255) { SendClientMessage(playerid, COLOR_GREY, " You are not in a Family !"); return 1; } new family = PlayerInfo[playerid][pFMember]; new wstring[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s", sendername); strmid(wstring, string, 0, strlen(string), 255); if(strcmp(FamilyInfo[family][FamilyLeader],wstring, true ) == 0 || PlayerInfo[playerid][pRank] > 4) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /adjust [name]"); SendClientMessage(playerid, COLOR_WHITE, "Available Names: Name, MOTD, Color, Invite, Uninvite, Rank, Rankname, Safe"); return 1; }