Pmoc oko 2 baga

Započeo Skazy_ Cappone, Februar 04, 2019, 11:09:19 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Imam problem sa liderom kada kuca /postavilidera TO i to ono se postavi i sve full ali u Rank name ne Stoji lider nego doslovno "0:" i text koji on pise moze li mi neko pomoci kako da ovoresim ? , Drugi bag jeste kada polazem vozacki i kada ga polozim ne dobije se dozvola. Hvala Unaprijed.
Dio skripte:
Pawno Code: [Izaberi]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ][ /code ]
Slika/video ingame problema(obavezno ako je ingame problem):

Pawno Code: [Izaberi]
Poslednja Izmena: Februar 04, 2019, 21:37:59 POSLE PODNE od Bašovski

daj cmd postavilidera
| Nick | Viserys Targaryen |

Evo brt :
YCMD:postavilidera(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SendMessage( playerid, "Morate se ulogovati da bi pisali.");
   if(PlayerInfo[playerid][pAdmin] < 5 && PlayerInfo[playerid][pVlidera] != 1) return SCM(playerid,-1,""BELA"[FS:RPG] "SPLAVA"Niste ovlasceni.!");
   if(AdminDuty[playerid] == 0) return SendErrorMessage( playerid, "Morate biti na admin duznosti!");
   new target, factionid, string[126], text[255];
   if(sscanf(params, "ud", target, factionid, text))
   {
      SCM(playerid,-1, ""BOJA"FS: "BELA"/postavilidera [ID/Ime] [ID Org]");
      SCM(playerid,-1,""SIVA"(ID:1). "BOJA"Los Santos Police Department");
      SCM(playerid,-1,""SIVA"(ID:2). "BOJA"Italian Mafia");
      SCM(playerid,-1,""SIVA"(ID:3). "BOJA"Black Dragon Triads");
      SCM(playerid,-1,""SIVA"(ID:4). "BOJA"Grove Street Family");
      SCM(playerid,-1,""SIVA"(ID:5). "BOJA"Ballas");
      SCM(playerid,-1,""SIVA"(ID:6). "BOJA"Novinari");
      SCM(playerid,-1,""SIVA"(ID:7). "BOJA"Intervnentna");
      SCM(playerid,-1,""SIVA"(ID:8). "BOJA"Parking Servis");
      SCM(playerid,-1,""SIVA"(ID:9). "BOJA"Condor");
        SCM(playerid,-1,""SIVA"(ID:10). "BOJA"Hitman");
        SCM(playerid,-1,""SIVA"(ID:11). "BOJA"Blue Lagoon");
        SCM(playerid,-1,""SIVA"(ID:12). "BOJA"Russian Mafia");
        SCM(playerid,-1,""SIVA"(ID:13). "BOJA"Da Naga Boys");
        SCM(playerid,-1,""SIVA"(ID:14). "BOJA"Taxi");
        SCM(playerid,-1,""SIVA"(ID:15). "BOJA"Yakuza");
        SCM(playerid,-1,""SIVA"(ID:16). "BOJA"FBI");
        SCM(playerid,-1,""SIVA"(ID:17). "BOJA"Black Cobra Corporation");
        SCM(playerid,-1,""SIVA"(ID:18). "BOJA"Vatrogasci (Nisu u Funkciji)");
      SCM(playerid,-1,""SIVA"(ID:19). "BOJA"Death Row");
      SCM(playerid,-1,""SIVA"(ID:20). "BOJA"Vojska");
      SCM(playerid,-1,""SIVA"(ID:21). "BOJA"The Blood Broders");
      SCM(playerid,-1,""SIVA"(ID:22). "BOJA"Balkan Mafia");
      SCM(playerid,-1,""SIVA"(ID:23). "BOJA"La Cosa Nostra");
      SCM(playerid,-1,""SIVA"(ID:24). "BOJA"Vagos Gang");
      return 1;
   }
   if(factionid < 0 || factionid > 24) return SendClientMessage(playerid, -1, ""CRVENA1"[FS:RPG] "SIVA" Ne mozete ici ispod 0 i vise od 24!");
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1 ,""SIVA"Pogresan ID (Nije Online)!");
   if(factionid == PlayerInfo[target][pLider]) return SendClientMessage(playerid,-1, ""SIVA"[GRESKA] "CRVENA1"Taj igrac je vec lider te organizacije!");
   if(factionid == 0)
   {
      PlayerInfo[target][pLider] = 0;
      PlayerInfo[target][pClan] = 0;
      PlayerInfo[target][pRank] = 0;
      PlayerInfo[target][pSkin] = 1;
        PlayerInfo[target][pImeRankaORG] = 1;
      Update_Skin(target,PlayerInfo[target][pSkin]);
      format(string, sizeof(string), ""SPLAVA"[FS:RPG] "BELA"Skinuli ste lidera igracu %s!", GetName(target));
      SendClientMessage(playerid, -1, string);
      format(string, sizeof(string), ""SPLAVA"INFO | "BELA"Admin %s je skinuo lidera igracu %s.", GetName(playerid), GetName(target));
      SendAdminMessage(-1, string);
      return 1;
   }
   PlayerInfo[target][pLider] = factionid; PlayerInfo[target][pClan] = factionid; PlayerInfo[target][pRank] = 6;
   if(factionid == 1) { PlayerInfo[target][pSkin] = 283; } //LS PD
   else if(factionid == 2) { PlayerInfo[target][pSkin] = 124; } //TCC
   else if(factionid == 3) { PlayerInfo[target][pSkin] = 120; } //Black Dragon Triads
   else if(factionid == 4) { PlayerInfo[target][pSkin] = 271; } //GROVE
   else if(factionid == 5) { PlayerInfo[target][pSkin] = 296; } //BALLAS
   else if(factionid == 6) { PlayerInfo[target][pSkin] = 294; } //NOVINARI
   else if(factionid == 7) { PlayerInfo[target][pSkin] = 303; } //Intervnentna
   else if(factionid == 8) { PlayerInfo[target][pSkin] = 16; } //Parking servis
   else if(factionid == 9) { PlayerInfo[target][pSkin] = 120; } //Condor
   else if(factionid == 10) { PlayerInfo[target][pSkin] = 163; } //HITMAN
   else if(factionid == 11) { PlayerInfo[target][pSkin] = 115; } //Blue Lagoon
   else if(factionid == 12) { PlayerInfo[target][pSkin] = 120; } //Russian Mafia
   else if(factionid == 13) { PlayerInfo[target][pSkin] = 124; } // Da Naga Boys
   else if(factionid == 14) { PlayerInfo[target][pSkin] = 187; } //TAXI
   else if(factionid == 15) { PlayerInfo[target][pSkin] = 120; } //Yakuza
   else if(factionid == 16) { PlayerInfo[target][pSkin] = 286; } //FBI
   else if(factionid == 17) { PlayerInfo[target][pSkin] = 208; } //TSM
   else if(factionid == 18) { PlayerInfo[target][pSkin] = 278; } //Vatrogasci
   else if(factionid == 19) { PlayerInfo[target][pSkin] = 124; } //DR
   else if(factionid == 20) { PlayerInfo[target][pSkin] = 179; } //Vojska
   else if(factionid == 21) { PlayerInfo[target][pSkin] = 294; } //TBB
   else if(factionid == 22) { PlayerInfo[target][pSkin] = 147; } //TEC
   else if(factionid == 23) { PlayerInfo[target][pSkin] = 147; } //LCN
   else if(factionid == 24) { PlayerInfo[target][pSkin] = 108; } //Vagos Gang
   //else if(factionid == 20) { PlayerInfo[target][pSkin] = 185; }
   Update_Skin(target, PlayerInfo[target][pSkin]);
   PlayerInfo[target][pImeRankaORG] = 1;
   strmid(PlayerInfo[target][pImeRankaORG], text, 0, strlen(text), 255);
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s vam je dao lidera organizacije %s!", GetName(playerid), ImeOrganizacije(factionid));
   SendClientMessage(target, -1, string);
   format(string, sizeof(string), ""BELA"Admin %s vam je postavio lidera organizacije %s\nBudite uzoran lider i postujte pravila.",GetName(playerid),ImeOrganizacije(factionid));
   SPD(target, 337, DIALOG_STYLE_MSGBOX, ""POSAOBOJA"Lider-Info", string, "Uredu", "");
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s je dao lidera %s-u organizacije %s.", GetName(playerid), GetName(target), ImeOrganizacije(factionid));
   SendAdminMessage(-1, string);
   return 1;
}

    
new target, factionid, string[126], text[255];
if(sscanf(params, "uds[255], target, factionid, text))
{
    SCM(playerid,-1, ""BOJA"FS: "BELA"/postavilidera [ID/Ime] [ID Org][Rank Ime]");
}


Mozes li da iskopiras errore jer ih ne vidim
I ako mozes u [ pawn ] kodu da pises lakse za vidjet


Ne kontam gde ti stoji 0: je l u cmd /clanovi ili /f

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994
SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif

Vidi u skripti jel imas ovo
//
YCMD:f(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UB:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   new tekst[256];
   if(sscanf(params, "s[90]", tekst))  return SendClientMessage(playerid,-1,  ""SPLAVA"UB:RP Pomoc | "BELA"/f [tekst]");
   if(PlayerInfo[playerid][pLider] < 1 && PlayerInfo[playerid][pClan] < 1 )  return SendClientMessage(playerid,-1,""CRVENA"[UB:RP] "SIVA"Niste clan ni jedne organizacije!");
    if(PlayerInfo[playerid][pMutiran] == 1) { SCM(playerid, -1, ""CRVENA"[UB:RP] "SIVA"Ne mozete pisati dok ste mutirani!"); return 1; }
    //----------------LSPD CHAT-------------//
   else if(PlayerInfo[playerid][pLider] == 1)
   {
      new string[256];
      format(string, sizeof(string), ""PPLAVA"PD | %s (%s): "SIVA"%s", GetName(playerid),RankOrg(playerid), params[0] );
      return ChatPD(-1,string);
   }
   else if(PlayerInfo[playerid][pClan] == 1)
   {
      new string[256];
      format(string, sizeof(string), ""PPLAVA"PD | %s (%s): "BELA"%s", GetName(playerid),RankOrg(playerid), params[0] );
      return ChatPD(-1,string);
   }
//
stock RankOrg(playerid)
{
   new szRankName[32],iPlayerOrg = (PlayerInfo[playerid][pClan] > 0) ? (PlayerInfo[playerid][pClan]) : (PlayerInfo[playerid][pLider]);
   switch(iPlayerOrg)
   {
      case 1: // Rankovi za LSPD
      {
         switch(PlayerInfo[playerid][pRank])
         {
            case 1: // 1. Rank
            szRankName = "Officer";
            case 2: // 2. Rank
            szRankName = "Lieutenant";
            case 3: // 3. Rank
            szRankName = "Captain";
            case 4: // 4. Rank
            szRankName = "Commander";
            case 5: // 5. Rank
            szRankName = "Deputy Chief";
            case 6: // 6. Rank
            szRankName = "Chief";
            default:
            szRankName = "Nema Rank";
         }
      }
AKO ZNAS ZA BOGA I ZA GLAVU ZIVU NE BRANI MI DOKTORE RAKIJU I PIVU

YCMD:postavilidera(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SendMessage( playerid, "Morate se ulogovati da bi pisali.");
   if(PlayerInfo[playerid][pAdmin] < 5 && PlayerInfo[playerid][pVlidera] != 1) return SCM(playerid,-1,""BELA"[FS:RPG] "SPLAVA"Niste ovlasceni.!");
   if(AdminDuty[playerid] == 0) return SendErrorMessage( playerid, "Morate biti na admin duznosti!");
    new target, factionid, string[126], text[255];
   if(sscanf(params, "uis[128]", target, factionid, text))
   {
      SCM(playerid,-1, ""BOJA"FS: "BELA"/postavilidera [ID/Ime] [ID Org]");
      SCM(playerid,-1,""SIVA"(ID:1). "BOJA"Los Santos Police Department");
      SCM(playerid,-1,""SIVA"(ID:2). "BOJA"Italian Mafia");
      SCM(playerid,-1,""SIVA"(ID:3). "BOJA"Black Dragon Triads");
      SCM(playerid,-1,""SIVA"(ID:4). "BOJA"Grove Street Family");
      SCM(playerid,-1,""SIVA"(ID:5). "BOJA"Ballas");
      SCM(playerid,-1,""SIVA"(ID:6). "BOJA"Novinari");
      SCM(playerid,-1,""SIVA"(ID:7). "BOJA"Intervnentna");
      SCM(playerid,-1,""SIVA"(ID:8). "BOJA"Parking Servis");
      SCM(playerid,-1,""SIVA"(ID:9). "BOJA"Condor");
        SCM(playerid,-1,""SIVA"(ID:10). "BOJA"Hitman");
        SCM(playerid,-1,""SIVA"(ID:11). "BOJA"Blue Lagoon");
        SCM(playerid,-1,""SIVA"(ID:12). "BOJA"Russian Mafia");
        SCM(playerid,-1,""SIVA"(ID:13). "BOJA"Da Naga Boys");
        SCM(playerid,-1,""SIVA"(ID:14). "BOJA"Taxi");
        SCM(playerid,-1,""SIVA"(ID:15). "BOJA"Yakuza");
        SCM(playerid,-1,""SIVA"(ID:16). "BOJA"FBI");
        SCM(playerid,-1,""SIVA"(ID:17). "BOJA"Black Cobra Corporation");
        SCM(playerid,-1,""SIVA"(ID:18). "BOJA"Vatrogasci (Nisu u Funkciji)");
      SCM(playerid,-1,""SIVA"(ID:19). "BOJA"Death Row");
      SCM(playerid,-1,""SIVA"(ID:20). "BOJA"Vojska");
      SCM(playerid,-1,""SIVA"(ID:21). "BOJA"The Blood Broders");
      SCM(playerid,-1,""SIVA"(ID:22). "BOJA"Balkan Mafia");
      SCM(playerid,-1,""SIVA"(ID:23). "BOJA"La Cosa Nostra");
      SCM(playerid,-1,""SIVA"(ID:24). "BOJA"Vagos Gang");
      return 1;
   }
   if(factionid < 0 || factionid > 24) return SendClientMessage(playerid, -1, ""CRVENA1"[FS:RPG] "SIVA" Ne mozete ici ispod 0 i vise od 24!");
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1 ,""SIVA"Pogresan ID (Nije Online)!");
   if(factionid == PlayerInfo[target][pLider]) return SendClientMessage(playerid,-1, ""SIVA"[GRESKA] "CRVENA1"Taj igrac je vec lider te organizacije!");
   if(factionid == 0)
   {
      PlayerInfo[target][pLider] = 0;
      PlayerInfo[target][pClan] = 0;
      PlayerInfo[target][pRank] = 0;
      PlayerInfo[target][pSkin] = 1;
        PlayerInfo[target][pImeRankaORG] = 1;
      Update_Skin(target,PlayerInfo[target][pSkin]);
      format(string, sizeof(string), ""SPLAVA"[FS:RPG] "BELA"Skinuli ste lidera igracu %s!", GetName(target));
      SendClientMessage(playerid, -1, string);
      format(string, sizeof(string), ""SPLAVA"INFO | "BELA"Admin %s je skinuo lidera igracu %s.", GetName(playerid), GetName(target));
      SendAdminMessage(-1, string);
      return 1;
   }
   PlayerInfo[target][pLider] = factionid; PlayerInfo[target][pClan] = factionid; PlayerInfo[target][pRank] = 6;
   if(factionid == 1) { PlayerInfo[target][pSkin] = 283; } //LS PD
   else if(factionid == 2) { PlayerInfo[target][pSkin] = 124; } //TCC
   else if(factionid == 3) { PlayerInfo[target][pSkin] = 120; } //Black Dragon Triads
   else if(factionid == 4) { PlayerInfo[target][pSkin] = 271; } //GROVE
   else if(factionid == 5) { PlayerInfo[target][pSkin] = 296; } //BALLAS
   else if(factionid == 6) { PlayerInfo[target][pSkin] = 294; } //NOVINARI
   else if(factionid == 7) { PlayerInfo[target][pSkin] = 303; } //Intervnentna
   else if(factionid == 8) { PlayerInfo[target][pSkin] = 16; } //Parking servis
   else if(factionid == 9) { PlayerInfo[target][pSkin] = 120; } //Condor
   else if(factionid == 10) { PlayerInfo[target][pSkin] = 163; } //HITMAN
   else if(factionid == 11) { PlayerInfo[target][pSkin] = 115; } //Blue Lagoon
   else if(factionid == 12) { PlayerInfo[target][pSkin] = 120; } //Russian Mafia
   else if(factionid == 13) { PlayerInfo[target][pSkin] = 124; } // Da Naga Boys
   else if(factionid == 14) { PlayerInfo[target][pSkin] = 187; } //TAXI
   else if(factionid == 15) { PlayerInfo[target][pSkin] = 120; } //Yakuza
   else if(factionid == 16) { PlayerInfo[target][pSkin] = 286; } //FBI
   else if(factionid == 17) { PlayerInfo[target][pSkin] = 208; } //TSM
   else if(factionid == 18) { PlayerInfo[target][pSkin] = 278; } //Vatrogasci
   else if(factionid == 19) { PlayerInfo[target][pSkin] = 124; } //DR
   else if(factionid == 20) { PlayerInfo[target][pSkin] = 179; } //Vojska
   else if(factionid == 21) { PlayerInfo[target][pSkin] = 294; } //TBB
   else if(factionid == 22) { PlayerInfo[target][pSkin] = 147; } //TEC
   else if(factionid == 23) { PlayerInfo[target][pSkin] = 147; } //LCN
   else if(factionid == 24) { PlayerInfo[target][pSkin] = 108; } //Vagos Gang
   //else if(factionid == 20) { PlayerInfo[target][pSkin] = 185; }
   Update_Skin(target, PlayerInfo[target][pSkin]);
    //PlayerInfo[target][pImeRankaORG] = 1;
    strmid(PlayerInfo[target][pImeRankaORG], text, 0, strlen(text), 255);
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s vam je dao lidera organizacije %s!", GetName(playerid), ImeOrganizacije(factionid));
   SendClientMessage(target, -1, string);
    format(string, sizeof(string), ""BELA"Admin %s vam je postavio lidera organizacije %s\nBudite uzoran lider i postujte pravila.",GetName(playerid),ImeOrganizacije(factionid));
   SPD(target, 337, DIALOG_STYLE_MSGBOX, ""POSAOBOJA"Lider-Info", string, "Uredu", "");
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s je dao lidera %s-u organizacije %s.", GetName(playerid), GetName(target), ImeOrganizacije(factionid));
   SendAdminMessage(-1, string);
   return 1;
}


stock RankOrg(playerid)
{
	new nesto[69];
	format(nesto,sizeof(nesto),PlayerInfo[playerid][pImeRankaORG]);
	return nesto;
}
Poslednja Izmena: Februar 04, 2019, 17:46:28 POSLE PODNE od youngdeal
69