[POMOC] Jednostavno ali tako tesko!!!

Započeo [Banana$]ReadMe.txt, Maj 09, 2011, 18:37:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Ma GF edit.
Detaljan opis problema:
Evo ovako,
Kako napraviti iz obične komande:
if (strcmp("/mojakomanda", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}


Komandu, na koju bi // Do something here tek bila nakon ovih if-ova :

   if(IsPlayerConnected(playerid))
   {
if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6)||PlayerInfo[playerid][pLeader] == 5||PlayerInfo[playerid][pMember] == 5)||PlayerInfo[playerid][pLeader] == 15||PlayerInfo[playerid][pMember] == 15)||PlayerInfo[playerid][pLeader] == 13||PlayerInfo[playerid][pMember] == 13)||PlayerInfo[playerid][pLeader] == 16||PlayerInfo[playerid][pMember] == 16)
       {
  if(PlayerInfo[playerid][pDok] != 1)
    {
  if(PlayerToPoint(15, playerid, 960.31,-1420.92,16.75))


I da , bih na svaki If Dosao else:
else
{
SendClientMessage(playerid, COLOR_GREY, "Nisi kod skrovista.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nisi uzeo kombi kod doka.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "   Moras biti u nekoj organizaciji da bi nabavljao robu");
return 1;
}


Znam ljudi ta je to tako jednostavno, no mucim se vec pola sata, i nemam srece, samo treba poslozit!!! Dajte mi pomognite, i slozite mi komandu!

Dio skripte: ^^
[/b]
Poslednja Izmena: Maj 09, 2011, 18:48:04 POSLE PODNE od [Banana$]ReadMe.txt
hakler xD

Preporuka , nemoj tako...

       if(!IsPlayerConnected(playerid)) return false
           if(PlayerInfo[playerid][pLeader] != 6||PlayerInfo[playerid][pMember] != 6)||PlayerInfo[playerid][pLeader] != 5||PlayerInfo[playerid][pMember] != 5)||PlayerInfo[playerid][pLeader] != 15||PlayerInfo[playerid][pMember] != 15)||PlayerInfo[playerid][pLeader] != 13||PlayerInfo[playerid][pMember] != 13)||PlayerInfo[playerid][pLeader] != 16||PlayerInfo[playerid][pMember] != 16) return SendClientMessage(playerid, -1,"Moras biti u nekoj organizaciji da bi nabavljao robu");
               if(PlayerInfo[playerid][pDok] != 1) return SendClientMessage(playerid, -1, "Nisi kod skrovista.");
                                                       ...

Citat: eXtreme poslato Maj 09, 2011, 18:57:00 POSLE PODNE
Preporuka , nemoj tako...

       if(!IsPlayerConnected(playerid)) return false
           if(PlayerInfo[playerid][pLeader] != 6||PlayerInfo[playerid][pMember] != 6)||PlayerInfo[playerid][pLeader] != 5||PlayerInfo[playerid][pMember] != 5)||PlayerInfo[playerid][pLeader] != 15||PlayerInfo[playerid][pMember] != 15)||PlayerInfo[playerid][pLeader] != 13||PlayerInfo[playerid][pMember] != 13)||PlayerInfo[playerid][pLeader] != 16||PlayerInfo[playerid][pMember] != 16) return SendClientMessage(playerid, -1,"Moras biti u nekoj organizaciji da bi nabavljao robu");
               if(PlayerInfo[playerid][pDok] != 1) return SendClientMessage(playerid, -1, "Nisi kod skrovista.");
                                                       ...


Daj molim te stavi mi u cijeli komandu xD
hakler xD