[Pomoc] /f Komanda

Započeo FireMan, Mart 21, 2011, 13:33:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:Cyb3r
Detaljan opis problema:dje sam pogrijesio,neradi mi /f
Dio skripte:CMD:f(playerid, params[])
{
new result,string[128];
new leader = PlayerInfo[playerid][Lider];
new member = PlayerInfo[playerid][Clan];
if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, NARANDZASTA, "Ne mozes pricati! Usutkan si.");
if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, NARANDZASTA, "Koristi: /f (text)!");
if (gTeam[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "Ti nisi clan Organizacije!");
if(member==1)//POLICIJA
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Zapovednik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Kapetan %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Porucnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Narednik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Cinovnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Kadet %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Kadet %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==2)//F.B.I
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Deputy Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent-in-Charge %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Senior Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Probationary Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Probationary Agent %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==3)//BALLAS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Original Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Little Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Little Young Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==4)//HITNA POMOC
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Upravitelj %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Zamenik Upravitelja %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Specijalni Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Doktor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Student %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Student %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==5)//CORLEONE's
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Considerer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Soldiers %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Associates %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Associates %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==6)//BLACK DRAGON TRIADS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Right Hand %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Miembro %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==7)//PREDSEDNIK
{
if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Politicar %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Prigovornik %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==8)//GROVE STREET
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Warlord %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Thug %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Hustler %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Grove Begginer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Grove Begginer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==9)//NOVINAR
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Network Producer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Network Editor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Network Anchor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Local Editor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Local Reporter %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Intern %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Intern %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==10)//TAXI
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Taxi Company Owner %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Shift Supervisor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Dispatcher %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Cabbie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Taxi Rookie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Trainee %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Trainee %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==11)//HITMAN
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "UnderBoss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Mafer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Extra Killer 3 %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Killer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==12)//CRIPS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Baby Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Tiny Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Begginer Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Begginer Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==13)//STREET RACERS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Master Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Pr0 Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Fast Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Street Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Little Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Little Racer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==14)//VINCIE
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Don %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Padrino %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "LaManoDestra %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capitano %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Soldato %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Ragazzi %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Ragazzi %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==15)//L.C.N
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Advisor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Warrior %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(leader >= 1 && leader <= 15)
{
format(string, sizeof(string), "Lider %s: %s. )) **", ImeIgraca(playerid), result);
SendFamilyMessage(PlayerInfo[playerid][Lider], SVETLOZELENA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], LJUBICASTA, string);
}
printf("%s", string);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

ne kontam se u pawn ali zapelo mi je za oko ovo
CMD:f(playerid, params[])

/f? xD


Pogledaj Nije problem Do komande /f Nego Tutorial Ima Bug Trebas Prvo da odgledas tutorial I onda ce ti raditi /f chat /ooc chat /news chat...Kao sto vidis Kad se registrujes Odma Ti udjes Na srw nema ni da biras pol kad si rodjen...Moras da popravis Bug oko tutoriala I Oko Pola rodjenja.......

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD

Citat: [Modern] Sonny poslato Mart 21, 2011, 13:58:20 POSLE PODNE
ne kontam se u pawn ali zapelo mi je za oko ovo
CMD:f(playerid, params[])

/f? xD
U cmd-u se pise bez tog "/" znaci npr :


CMD:giverank(playerid, params[])

A neces ti dodavati :

CMD:/giverank(playerid, params[])

:P