[Pomoc] Hitno. /makeleader

Započeo Savana, Decembar 12, 2014, 18:38:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:LGFR
Detaljan opis problema:cim stavim /makeleader i id igraca i id orge restarta se server na orgi 1 ne na orgi 2 da i na orgi 3 da na orgi 1 se nis nedogadja...
Dio skripte:CMD:makeleader(playerid,params[])
{
new string[128];
new id, lider;
if(PlayerInfo[playerid][pAdmin] < 1337) return SCM(playerid,COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Niste ovlasteni!");
if(sscanf(params,"ui",id,lider)) return SCM(playerid, Narandasta, " Koristi: {FFFFFF}/makeleader [ID/Nick] [ID Organizacije]");
if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Igrac je offline");
if(lider < 0 || lider > BROJ_ORG) return SCM(playerid, COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Krivi ID Tima");
    switch(lider)
    {
    case 0:
{
    SCM(playerid, COLOR_GLAVNA,"");
    SCM(playerid, COLOR_GLAVNA,"");
    SCM(playerid, COLOR_GLAVNA,"Da smjenis lidera koristi /maknilidera!");
}
case 1:
{
   if(strcmp(AMInfo[1][Lider], "Nitko", false) && strcmp(AMInfo[2][Lider], "Nitko", false))
         {
    SendClientMessage(playerid, COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Ta org/banda/mafija ima 2 lidera!");
SendClientMessage(id, COLOR_GLAVNA, "Nazalost admin te nije mogao staviti za lidera te bande/mafije!");
format(string, sizeof(string), "Admin %s", PlayerName(playerid));
SendClientMessage(id, COLOR_GLAVNA, string);
return 1;
}
PlayerInfo[id][pOrg] = lider;
PlayerInfo[id][pLiderORG] = lider;
PlayerInfo[id][pRankOrg] = 6;
PlayerInfo[id][pAktivnostTIMa] = 0;
PlayerInfo[id][pSkin] = LeaderSkins[lider][0];
SetPlayerSkin(id, PlayerInfo[id][pSkin]);
SacuvajIgraca(playerid);
format(string, sizeof(string), " Promovirao si %s u lidera tima(1): Albanian Mafia", PlayerName(id));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Promoviran si u lidera tima(1). | Admin: %s", PlayerName(playerid));
SendClientMessage(id, COLOR_LIGHTBLUE, string);
for(new i = 1; i < 3; i++)
  {
      if(PlayerInfo[id][pLiderORG] > 0)
      {
if(!strcmp(AMInfo[i][Lider], "Nitko", false)) { strmid(AMInfo[i][Lider], PlayerName(id), 0, strlen(PlayerName(id)), 255); SacuvajAM(); break; }
}
}
}
case 2:
{
   if(strcmp(TPHInfo[1][Lider], "Nitko", false) && strcmp(TPHInfo[2][Lider], "Nitko", false))
         {
    SendClientMessage(playerid, COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Ta org/banda/mafija ima 2 lidera!");
SendClientMessage(id, COLOR_GLAVNA, "Nazalost admin te nije mogao staviti za lidera te bande/mafije!");
format(string, sizeof(string), "Admin %s", PlayerName(playerid));
SendClientMessage(id, COLOR_GLAVNA, string);
return 1;
}
PlayerInfo[id][pOrg] = lider;
PlayerInfo[id][pLiderORG] = lider;
PlayerInfo[id][pRankOrg] = 6;
PlayerInfo[id][pAktivnostTIMa] = 0;
PlayerInfo[id][pSkin] = LeaderSkins[lider][0];
SetPlayerSkin(id, PlayerInfo[id][pSkin]);
SacuvajIgraca(playerid);
format(string, sizeof(string), " Promovirao si %s u lidera tima(2): The Poor Hooligans", PlayerName(id));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Promoviran si u lidera tima(2). | Admin: %s", PlayerName(playerid));
SendClientMessage(id, COLOR_LIGHTBLUE, string);
for(new i = 1; i < 3; i++)
  {
      if(PlayerInfo[id][pLiderORG] > 0)
      {
if(!strcmp(TPHInfo[i][Lider], "Nitko", false)) { strmid(TPHInfo[i][Lider], PlayerName(id), 0, strlen(PlayerName(id)), 255); SacuvajTPH(); break; }
}
}
}
case 3:
{
   if(strcmp(CCInfo[1][Lider], "Nitko", false) && strcmp(CCInfo[2][Lider], "Nitko", false))
         {
    SendClientMessage(playerid, COLOR_GRESKA, ""#COL_WHITE"["#COL_TAMNOPLAVA"Greska!"#COL_WHITE"] "#COL_GREY"Ta org/banda/mafija ima 2 lidera!");
SendClientMessage(id, COLOR_GLAVNA, "Nazalost admin te nije mogao staviti za lidera te bande/mafije!");
format(string, sizeof(string), "Admin %s", PlayerName(playerid));
SendClientMessage(id, COLOR_GLAVNA, string);
return 1;
}
PlayerInfo[id][pOrg] = lider;
PlayerInfo[id][pLiderORG] = lider;
PlayerInfo[id][pRankOrg] = 6;
PlayerInfo[id][pAktivnostTIMa] = 0;
PlayerInfo[id][pSkin] = LeaderSkins[lider][0];
SetPlayerSkin(id, PlayerInfo[id][pSkin]);
SacuvajIgraca(playerid);
format(string, sizeof(string), " Promovirao si %s u lidera tima(3): Corrupt Cop's", PlayerName(id));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Promoviran si u lidera tima(3). | Admin: %s", PlayerName(playerid));
SendClientMessage(id, COLOR_LIGHTBLUE, string);
for(new i = 1; i < 3; i++)
  {
      if(PlayerInfo[id][pLiderORG] > 0)
      {
if(!strcmp(CCInfo[i][Lider], "Nitko", false)) { strmid(CCInfo[i][Lider], PlayerName(id), 0, strlen(PlayerName(id)), 255); SacuvajCC(); break; }
}
}
}
}
return 1;
}

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

Meni nista nije jasno sata radi sta ne redi sve si nabroja ja se izgubio de to lepo reci

Komanda /makeleader ima 3 organizacije za staviti ..
Kad igracu dam organizaciju broj 1 nis se nedogadja.
Kada igracu dam organizaciju 2 ili 3,restarta se server i locka mi ga....
Moram u GPu restartat da dodje opet k sebi..
Udjem opet ponovim,i restarta se,igram 2h bez da koristim /makeleader i nis se nedogadja..
Cim koristim /makeleader da dam liku lidera odmah se restarta server... odmah cim stisnem enter.
CroHerze Skripter