PDA

View Full Version : [Pomoc][SR] Error


[TS]Ricky
23/06/2011, 07:50 AM
Radim na ravensu i sada imam ovaj jedan error sredjivao sam /r chat...da ga nemaju bande...i sada pazite ovo

else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)

dobijem ovo :S


C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(40950) : error 029: invalid expression, assumed zero
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(40950) : warning 215: expression has no effect
C:\Users\Arsic\Desktop\Time Shift RolePlay\gamemodes\larp.pwn(40950) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


znm sta to znaci ali ne mogu da resim tj ne kontam ovo :/

Gagi_Corleone
23/06/2011, 07:53 AM
Daj celu komandu to sto si radio ili par redi iznad i ispod toga

[TS]Ricky
23/06/2011, 07:59 AM
evo vidis pomocu ovoga /* */ sam izostavljao bande da ne mogu da koriste /r chat i trebam i ovu zadnju da skinem ali pojavi mi se oni 26 errora

if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
return 1;
}

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))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/r)adio [radio chat]");
return 1;
}
if (PlayerInfo[playerid][pAchievement2] == 0)
{
TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~For the Team (2) ~n~~n~~w~you won ~g~$200");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,200);
PlayerInfo[playerid][pAchievement2] = 1;
}
if(OnSwatDuty[playerid] == 1)
{
if(PlayerInfo[playerid][pSwat] == 4) { format(string, sizeof(string), "Commander %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSwat] == 3) { format(string, sizeof(string), "Sub-Commander %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSwat] == 2) { format(string, sizeof(string), "Instructor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSwat] == 1) { format(string, sizeof(string), "Operative %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "%s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(1, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
else if(OnTacticalDuty[playerid] == 1)
{
if(PlayerInfo[playerid][pTactical] == 4) { format(string, sizeof(string), "Master Agent %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pTactical] == 3) { format(string, sizeof(string), "Elite Agent %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pTactical] == 2) { format(string, sizeof(string), "Expert Agent %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pTactical] == 1) { format(string, sizeof(string), "Trainee Unit %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s(radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(2, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
else if(OnSpecialFDuty[playerid] == 1)
{
if(PlayerInfo[playerid][pSpecialF] == 4) { format(string, sizeof(string), "Squad Leader %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSpecialF] == 3) { format(string, sizeof(string), "Squad Sub-Leader %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSpecialF] == 2) { format(string, sizeof(string), "Masterchief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pSpecialF] == 1) { format(string, sizeof(string), "Soldier %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(3, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
if(IsAFreecop(playerid) && PlayerInfo[playerid][pDuty] == 1)
{
format(string, sizeof(string), "Voluntary %s (radio): %s, over.", sendername, result);
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(1, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pDBanned] == 0 || PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[playerid][pDBanned] == 0)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Deputy Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Captain %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Lieutenant %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Sergeant %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Corporal %s (radio): %s, over.*", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Officer %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Cadet %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(1, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pDBanned] == 0 || PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[playerid][pDBanned] == 0)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Director %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Deputy Director %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Assi. Director %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Division Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent in Charge %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Special Agent %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Agent %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Cadet %s(radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(2, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
else if(PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pDBanned] == 0 || PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[playerid][pDBanned] == 0)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "General %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Sub General %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Captain %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Lieutenant %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Major %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Sergeant %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Soldier %s(radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Private %s(radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(3, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
else if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "EMS Commissioner %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "EMS Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "EMS Lieutenant %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "EMS Captain %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "ALS Medic %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "BLS Medic %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "EMS Trainee %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "EMS Explorer %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(4, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (departments): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
/*else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Corona %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Mano Derecha %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Proscrito %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Miembro %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Asociado %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Forastero %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(5, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(d, m, y);
gettime(d,mi,y);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
/*else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Capo Crimini %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Capo Bastone %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Consigleri %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Capo Regime %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Sgarrista %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Piciotto %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Giovoane %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(6, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Mayor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Assistant Mayor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Security Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Drivers Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Bodyguard %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Driver %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(7, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
/*else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Director %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Vice Director %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Agent %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Marksman %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Freelancer %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(8, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
/*else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Network Producer %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "ABC Manager %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Company Secreatary %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Head Journalist %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Journalist %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Intern Worker %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(9, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
/*else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Owner %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Supervisor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Dispatcher %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Cabbie %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Taxi Rookie %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Trainee %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(10, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
/*else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Manager %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Senior Instructor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Instructor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Trainee %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(11, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
else if(PlayerInfo[playerid][pMember]==12||PlayerInfo[playerid][pLeader]==12)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "FD Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Assistant Chief %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "FD Captain %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "FD Lieutenant %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Engine %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Firefighter %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Probationary %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Explorer %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(12, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
/*else if(PlayerInfo[playerid][pMember]==13||PlayerInfo[playerid][pLeader]==13)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Father of Anarchy %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Son of Anarchy %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Rider of Anarchy %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Rider of Chaos %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Rider of Fights %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Rookie Rider %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(13, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
/*{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Don %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Don's right hand %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Capo %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Shatei %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Wakashu %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Gaij in %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(14, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
/*else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Don %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Pakhan %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Capo %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Byki %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Patsani %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Shestiorka %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(15, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}*/
else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) // OVDE JE TAJ ERROR
{
if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "Boss %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "Lower Boss %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "Elite Advisor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Loyal Advisor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Advisor %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Made Man %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Elite Member %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Loyal Member %s (radio): %s, over.", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Member %s (radio): %s, over.", sendername, result); }
else
{
format(string, sizeof(string), "[Unknown] %s (radio): %s, over.", sendername, result);
}
ProxDetector(7.5, playerid, string,COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_C HAT4,COLOR_CHAT5);
SentMessage[playerid] = 1;
SendRadioMessage(16, TEAM_RADIO_COLOR, string);
SentMessage[playerid] = 0;
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string), "[%d/%d/%d](%d:%d:%d) %s (radio): (%s)",d,m,y,h,mi,s, sendername, result);
RadioChatLog(string);
return 1;
}
}
return 1;
}

Gagi_Corleone
23/06/2011, 08:04 AM
Ako ti se pojavi 26 error-a onda ti fali jedan ili vise }

EDIT:
A i ovaj red else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) dodaj ispred njega // i bice uredu

[TS]Ricky
23/06/2011, 08:06 AM
Ako ti se pojavi 26 error-a onda ti fali jedan ili vise }

da znam to nego ne mogu onaj error sto sma postavio u prvom postu da resim....

kada sam satvio celu komandu stavio sam ti gde mi je error..pogledaj pri kraju....

Gagi_Corleone
23/06/2011, 08:08 AM
A i ovaj red else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) dodaj ispred njega // i bice uredu
Zato sto ti ide onda else if pa onda dodje ono odmah ispod toga else if pa zato samo to uradi i mislim da ce biti ok

[TS]Ricky
23/06/2011, 08:14 AM
Resio sam hvala ti :)

sada bi i da resim /f chat :D :D da ga nemaju legalne organizacije..i sada mi se malo sve pomutilo sta treba, da obrisem :/

if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0 || strcmp(cmd, "/faction", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced");
return 1;
}

new year, month, day;
new hour, minute, second;
gettime(hour,minute,second);
getdate(day,month,year);
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))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/f)action [faction chat]");
return 1;
}
if (PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255)
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==1)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Deputy Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Lieutenant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Sergeant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Corporal %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Officer %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cadet %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Cadet %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==2)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( Director %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Deputy Director %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Assistant of Director %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Division Cheif %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Special Agent in Charge %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Special Agent %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Agent %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( FBI Cadet %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( FBI Cadet %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==3)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( General %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Sub General %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Lieutenant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Major %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Sergeant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Soldier %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Private %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Private %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==4)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( EMS Commisioner %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( EMS Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( EMS Lieutenant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( EMS Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( ALS Medic %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( BLS Medic %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( EMS Trainee %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( EMS Explorer %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( EMS Explorer %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==12)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( FD Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Assistant Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Lieuteantn %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Driver %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Firefighter %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Probitionary %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Explorer %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Explorer %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==5)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Corona %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mano derecha %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Proscrito %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Miembro %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Asociado %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Forastero %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Forastero %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
if(member==6)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( Capo Crimini %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Capo Bastone %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Consiglieri %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Capo Regime %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Sgarrista %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Piciotto %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Giovane D'honore %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Outsider %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Outsider %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==7)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Mayor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Mayor's Assistant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Mayor's Security Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Mayor's Drivers Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Mayor's Bodyguard %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Mayor's Driver %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Mayor's Driver %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==8)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Director %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Vice-Director %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Special Agent %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Agent %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Marksman %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Freelancer %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Freelancer %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==9)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Network Producer %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( ABC Manager %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Company Secretary %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Head Journalist %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Journalist %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Intern Worker %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Intern Worker %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==10)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Taxi Company Owner %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Shift Supervisor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Dispatcher %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Cabbie %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Taxi Rookie %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Trainee %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Trainee %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==11)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Boss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Under Boss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Manager %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Senior Instructor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Instructor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Trainee %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Trainee %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==12)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( FD Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Assistant Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( FD Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( FD Lieutenant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Driver %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Firefighter %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Probitionary %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Explorer %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Explorer %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==13)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Father of Anarchy %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Son of Anarchy %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Rider of Anarchy %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Rider of Chaos %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Rider of Fight %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Rookie Rider %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Rookie Rider %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==14)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Don %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Don's right hand %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capo %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Shatei %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Wakashu %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Gaij in %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Gaij in %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==15)
{
if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Don %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Pakhan %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Underboss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capo %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Byki %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Patsani %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Shestiorka %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Shestiorka %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(member==16)
{
if(PlayerInfo[playerid][pRank] == 9) { format(string, sizeof(string), "** (( Boss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( Lower Boss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Elite Advisor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Loyal Advisor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Advisor %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Made Man %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Elite Member %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Loyal Member %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Member %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Member %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
else if(leader==1)
{
format(string, sizeof(string), "** (( Chief %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==2)
{
format(string, sizeof(string), "** (( Director %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==3)
{
format(string, sizeof(string), "** (( General %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==4)
{
format(string, sizeof(string), "** (( EMS Commisioner %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==5)
{
format(string, sizeof(string), "** (( Jefe %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==6)
{
format(string, sizeof(string), "** (( Godfather %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==7)
{
format(string, sizeof(string), "** (( Mayor %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==8)
{
format(string, sizeof(string), "** (( Director %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==9)
{
format(string, sizeof(string), "** (( Network Producer %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==10)
{
format(string, sizeof(string), "** (( Taxi Company Owner %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==11)
{
format(string, sizeof(string), "** (( Boss %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==12)
{
format(string, sizeof(string), "** (( FD Chief %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==13)
{
format(string, sizeof(string), "** (( Father of Anarchy %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==14)
{
format(string, sizeof(string), "** (( Don %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==15)
{
format(string, sizeof(string), "** (( Don %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(leader==16)
{
format(string, sizeof(string), "** (( Boss %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Godfather %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Underboss %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Capo %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Soldier %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Associate %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Outsider %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Outsider %s: %s )) **", sendername, result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], 0x7BDDA5AA, string);
}
printf("%s", string);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Family): (%s)",day,month,year,hour,minute,second,sendername,resu lt);
FamilyChatLog(string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " you are not part of a Family!");
return 1;
}
}//not connected
return 1;
}

Gagi_Corleone
23/06/2011, 08:18 AM
Pa ovako obrises onaj deo gde ti je npr. za PD je ovako
if(member==1)
{
if(PlayerInfo[playerid][pRank] == 8) { format(string, sizeof(string), "** (( Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 7) { format(string, sizeof(string), "** (( Deputy Chief %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Captain %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** (( Lieutenant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** (( Sergeant %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** (( Corporal %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Officer %s: %s )) **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Cadet %s: %s )) **", sendername, result); }
else { format(string, sizeof(string), "** (( Cadet %s: %s )) **", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0x7BDDA5AA, string);
}
Znaci ispituje ono member sada ti vidi koje je koji id imas 2 za FBI pa valjda 3 za SWAT i da li je 4 Hitna. To je sto ja mislim i imas ono
else if(leader==1)
{
format(string, sizeof(string), "** (( Chief %s: %s )) **", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0x7BDDA5AA, string);
}
To ti je za PD to obrises ono gore i imas one ostale gde je 2,3 i vidi koje je za Hitnu ali ipak ti prvo proveri koja je organizacija legalna pa kod njih brises

[TS]Ricky
23/06/2011, 08:24 AM
Odlicno, hvala ti puno...resio sam :)

Gagi_Corleone
23/06/2011, 08:25 AM
Nista ako treba jos nesto pitaj tu sam ja ;)

[TS]Ricky
23/06/2011, 08:27 AM
Nista ako treba jos nesto pitaj tu sam ja ;)

ma treba ali me sramota vise pitati :D mogu li te pitati preko pm :D :D :D

Gagi_Corleone
23/06/2011, 08:28 AM
Naravno. Evo ti i moj xfire gagicorleone

[TS]Ricky
23/06/2011, 08:33 AM
Naravno. Evo ti i moj xfire gagicorleone

Poslao sam ti pm na forumu :D

L84S
23/06/2011, 10:52 AM
Ricky;1259007']Poslao sam ti pm na forumu :D

Otvoris samo nov temu i ovako je podforum mrtav treba ga oziviti pa zato ako imas problema samo postas u novu temu.

Gagi_Corleone
23/06/2011, 12:18 PM
Otvoris samo nov temu i ovako je podforum mrtav treba ga oziviti pa zato ako imas problema samo postas u novu temu.

Pa moze i tako da ga malo ozivimo evo ja cu i da okacim onaj tutorial.