17.10.2011, 18:04
i have problem here.. please help
Errors
Code:
if(strcmp(cmd, "/invite", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /invite [playerid/PartOfName]"); return 1; } new para1; new ftext[128]; para1 = ReturnUser(tmp); if (RankRequire(playerid)) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { if (PlayerInfo[para1][pMember] == 0) { if(PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pRank] >= 9) { ftext = "Police Force"; } else if(PlayerInfo[playerid][pMember] == 2) { ftext = "FBI/ATF"; } else if(PlayerInfo[playerid][pMember] == 3) { ftext = "Goverment";} else if(PlayerInfo[playerid][pMember] == 4) { ftext = "Firemen/Ambulance"; } else if(PlayerInfo[playerid][pMember] == 5) { ftext = "San Andreas News"; } else if(PlayerInfo[playerid][pMember] == 6) { ftext = "Target FM Radio 98.6"; } else if(PlayerInfo[playerid][pMember] >= 8) { ftext = FamilyInfo[PlayerInfo[playerid][pMember]][FamilyName]; } else { SendClientMessage(playerid,COLOR_GREY," You are not in a valid faction !"); return 1; } GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[InviteOffer][para1] = playerid; if(PlayerInfo[playerid][pMember] >= 8) { format(string, sizeof(string), " You have been invited to join %s from Leader %s, type /accept invite to join", FamilyInfo[PlayerInfo[playerid][pMember]][FamilyName], sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,FamilyInfo[PlayerInfo[playerid][pMember]][FamilyName]); SendClientMessage(playerid, COLOR_WHITE, string); } else { format(string, sizeof(string), " You have been invited to join %s from Leader %s, type /accept invite to join", ftext, sendername); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), " You have Invited %s to join the %s.", giveplayer,ftext); SendClientMessage(playerid, COLOR_WHITE, string); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is already a Family Member."); return 1; } } } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not a faction leader!"); } } return 1; }
Quote:
error 017: undefined symbol "RankRequire" error 047: array sizes do not match, or destination array is too small error 017: undefined symbol "InviteOffer" |