Szerző Téma: Parancs probléma  (Megtekintve 334 alkalommal)

herban

  • Vendég
Parancs probléma
« Dátum: 2011. Április 18. - 17:55:17 »
0 Show voters
Üdv.
Az lenne benne a hiba, hogy vagy 10× kíírja \"Nincs mentos szolgálatban....\"
meg a \"te már nem szorulsz....\" azt is mindig kíírja... pedig csak 1× kéne.
 

CMD:callmento(playerid, params[]) {
if(mento[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,\"HIBA:Hívtál már mentõt!\");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
hivo = playerid;
fogadva[playerid] = 0;
y1 = y;
x1 = x;
z1 = z;
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_MENTO) {
if(IsPlayerConnected(i)) {
new str[128];
GetPlayerName(playerid,str,sizeof(str));
mento1[playerid] = 1;
format(str,sizeof(str),\"%s hívott egy mentõt! Hívás elfogadása: /mentoaccept\",str);
SendClientMessage(i,COLOR_WHITE,str);
 
}else{
   
     
         if(BusDrivers < 1)
         {
            SendClientMessage(playerid, COLOR_GREY, \"  Nincs mentõs szolgálatban !\");
            SendClientMessage(playerid, COLOR_GREEN, \"Felsegítettek.\");
    ClearAnimations(playerid);
            SetPlayerHealth(playerid,90);
            animba[playerid] = 0;
    TogglePlayerControllable(playerid, 1);
   if(animba[playerid] == 0)
   {
      SendClientMessage(playerid,COLOR_RED,\"Te már nem szorulsz segítségre!\");
}
      }
      }
      }
   }
return 1;
}

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Parancs probléma
« Válasz #1 Dátum: 2011. Április 18. - 18:06:32 »
0 Show voters
if(BusDrivers < 1) == Medic

 

Idézetet írta: Epsilon date=1303141045\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"7596\" data-ipsquote-contentclass=\"forums_Topic
Mu-ha-ha-ha!
 
:D
Kicsit alakíthatnál a kódon mert szinte semmit sem látni belõle.  :dead:

herban

  • Vendég
Parancs probléma
« Válasz #2 Dátum: 2011. Április 18. - 19:08:08 »
0 Show voters
Nem ez a hiba... nekem ilyen néven van bent a team
amugy meg elcsusztak a sorok mikor bemásoltam...

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal