[POMOC]ERROR oko chata /f

Započeo Emir_Ferguson, Januar 13, 2012, 23:21:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cllasic Life Edit
Detaljan opis problema:Vako ja napravim jednu novu mafiju Balkan Mafia i napraivm sve error izbaci oko /f
Dio skripte:{
        if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(BalkanMafia)Lider %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(BalkanMafia)PodLider %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(BM)Rank 4 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(BM)Rank 3 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(BM)Rank 2 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(BM)Rank 1 %s: {FFFFFF}%s", sendername, result); }
else { format(string, sizeof(string), "(BM)Rank 1 %s: {FFFFFF}%s", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0xFF9900AA, string);
    }


Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Budi ono sto jesi jer se Lazna lica uvjek otkrivaju!

Daj cijelu komandu najbolje.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

forward SendFamilyMessage(family, color, string[]);
//------------------------------------------------------------------------------
public SendFamilyMessage(family, color, string[])
{
foreach (Player, i)
{
    if(PlayerInfo[i][pMember] == family || PlayerInfo[i][pLeader] == family)
    {
            if(!gFam[i])
            {
SendClientMessage(i, color, string);
}
}
}
}
//------------------------------------------------------------------------------
if(strcmp(cmd, "/family", true) == 0 || strcmp(cmd, "/f", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Ne mozete pricati, jer ste utisani");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
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, "Koristi: /f [chat oranizacije]");
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==5)//stavis svoj ID organizacije
    {
        if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "(BalkanMafia)Lider %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "(BalkanMafia)PodLider %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "(BM)Rank 4 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "(BM)Rank 3 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "(BM)Rank 2 %s: {FFFFFF}%s", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "(BM)Rank 1 %s: {FFFFFF}%s", sendername, result); }
else { format(string, sizeof(string), "(BM)Rank 1 %s: {FFFFFF}%s", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], 0xFF9900AA, string);
    }
    else if(leader==5) //stavis svoj ID organizacije
{
    format(string, sizeof(string), "(BM)Lider %s: {FFFFFF}%s", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], 0xFF9900AA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)//ovo nediraj to je kao primer za chat nebrisi
    {
        if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** (( Lider %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), "** (( Vice %s: %s ))  **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** (( Kamikaze %s: %s ))  **", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** (( Newbie %s: %s ))  **", sendername, result); }
else { format(string, sizeof(string), "** (( Outsider %s: %s )) **", sendername, result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], 0x7BDDA5AA, string);
}
printf("%s", string);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "{FFFFFF} Samo clanovi organizacije/bande/mafije");
return 1;
}
}//not connected
return 1;
}
//------------------------------------------------------------------------------
Budi ono sto jesi jer se Lazna lica uvjek otkrivaju!