[POMOC]Lideri

Započeo Nemanja1997, Mart 06, 2013, 13:43:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Nemanja1997

Skripta koju koristim:GF
Detaljan problem:Nece da ucitava podatke,evo slike i komande :D
Slika: http://www.zaslike.com/viewer.php?file=wl8p1v5se74k28z8w7p6.png
Komanda:if (strcmp(cmd, "/lideri", true) == 0)
{

     new text[64];
     new File:lider1 = fopen("Lideri/1.txt", io_read);
     while(fread(lider1, text)) {
     strmid(ldr1, text, 0, strlen(text), 255); }
     fclose(lider1);

     new File:lider2 = fopen("Lideri/2.txt", io_read);
     while(fread(lider2, text)) {
     strmid(ldr2, text, 0, strlen(text), 255); }
     fclose(lider2);

     new File:lider3 = fopen("Lideri/3.txt", io_read);
     while(fread(lider3, text)) {
     strmid(ldr3, text, 0, strlen(text), 255); }
     fclose(lider3);

     new File:lider4 = fopen("Lideri/4.txt", io_read);
     while(fread(lider4, text)) {
     strmid(ldr4, text, 0, strlen(text), 255); }
     fclose(lider4);

     new File:lider5 = fopen("Lideri/5.txt", io_read);
     while(fread(lider5, text)) {
     strmid(ldr5, text, 0, strlen(text), 255); }
     fclose(lider5);

     new File:lider6 = fopen("Lideri/6.txt", io_read);
     while(fread(lider6, text)) {
     strmid(ldr6, text, 0, strlen(text), 255); }
     fclose(lider6);

     new File:lider7 = fopen("Lideri/7.txt", io_read);
     while(fread(lider7, text)) {
     strmid(ldr7, text, 0, strlen(text), 255); }
     fclose(lider7);

     new File:lider8 = fopen("Lideri/8.txt", io_read);
     while(fread(lider8, text)) {
     strmid(ldr8, text, 0, strlen(text), 255); }
     fclose(lider8);

     new File:lider9 = fopen("Lideri/9.txt", io_read);
     while(fread(lider9, text)) {
     strmid(ldr9, text, 0, strlen(text), 255); }
     fclose(lider9);

     new File:lider10 = fopen("Lideri/10.txt", io_read);
     while(fread(lider10, text)) {
     strmid(ldr10, text, 0, strlen(text), 255); }
     fclose(lider10);

     new File:lider11 = fopen("Lideri/11.txt", io_read);
     while(fread(lider11, text)) {
     strmid(ldr11, text, 0, strlen(text), 255); }
     fclose(lider11);

     new File:lider12 = fopen("Lideri/12.txt", io_read);
     while(fread(lider12, text)) {
     strmid(ldr12, text, 0, strlen(text), 255); }
     fclose(lider12);

     new File:lider13 = fopen("Lideri/13.txt", io_read);
     while(fread(lider13, text)) {
     strmid(ldr13, text, 0, strlen(text), 255); }
     fclose(lider13);

     new File:lider14 = fopen("Lideri/14.txt", io_read);
     while(fread(lider14, text)) {
     strmid(ldr14, text, 0, strlen(text), 255); }
     fclose(lider14);

     new File:lider15 = fopen("Lideri/15.txt", io_read);
     while(fread(lider15, text)) {
     strmid(ldr15, text, 0, strlen(text), 255); }
     fclose(lider15);

     new File:lider16 = fopen("Lideri/16.txt", io_read);
     while(fread(lider16, text)) {
     strmid(ldr16, text, 0, strlen(text), 255); }
     fclose(lider16);

     new File:lider17 = fopen("Lideri/17.txt", io_read);
     while(fread(lider17, text)) {
     strmid(ldr17, text, 0, strlen(text), 255); }
     fclose(lider17);

     new File:lider18 = fopen("Lideri/18.txt", io_read);
     while(fread(lider18, text)) {
     strmid(ldr18, text, 0, strlen(text), 255); }
     fclose(lider18);

     new File:lider19 = fopen("Lideri/19.txt", io_read);
     while(fread(lider19, text)) {
     strmid(ldr19, text, 0, strlen(text), 255); }
     fclose(lider19);

     new File:lider20 = fopen("Lideri/20.txt", io_read);
     while(fread(lider20, text)) {
     strmid(ldr20, text, 0, strlen(text), 255); }
     fclose(lider20);

     new File:lider21 = fopen("Lideri/21.txt", io_read);
     while(fread(lider21, text)) {
     strmid(ldr21, text, 0, strlen(text), 255); }
     fclose(lider21);


new stringlideri[1024];
new lidercine1[56];
new lidercine2[256];
new lidercine22[255];
new lidercine3[56];
new onllideri[400];
format(lidercine1,sizeof(lidercine1),"================= [ ONLINE LEADERS ] =================");
format(lidercine2,sizeof(lidercine2),"Policija | %s\nInterventna | %s\nVojska | %s\nHitna Pomoc | %s\nYakuza | %s\nLCN | %s\nVlada | %s\nHitman | %s\nNovinari | %s\nTaxi | %s",ldr1,ldr2,ldr3,ldr4,ldr5,ldr6,ldr7,ldr8,ldr9,ldr10);
format(lidercine22,sizeof(lidercine22),"Saobracajna Policija | %s\nRuska Mafia | %s\nTriads | %s\nYamaguchi | %s\nCrips | %s\nBloods | %s\nCIA | %s\nGroove Street | %s\nMS 3 | %s\nParking Servis | %s\nPolicijska Akademija | %s",ldr11,ldr12,ldr13,ldr14,ldr15,ldr16,ldr18,ldr19,ldr20,ldr21);
format(lidercine3,sizeof(lidercine3),"================== [ ALL LEADERS ] ===================");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
                if (PlayerInfo[i][pLeader] >= 1)
      {
        new atext[20];
        new orgtext[50];
            if(PlayerInfo[i][pLeader] == 1) { orgtext = "Policija"; }
            else if(PlayerInfo[i][pLeader] == 2) { orgtext = "Interventna"; }
            else if(PlayerInfo[i][pLeader] == 3) { orgtext = "Vojska"; }
            else if(PlayerInfo[i][pLeader] == 4) { orgtext = "Medic"; }
            else if(PlayerInfo[i][pLeader] == 5) { orgtext = "Yakuza"; }
            else if(PlayerInfo[i][pLeader] == 6) { orgtext = "LCN"; }
            else if(PlayerInfo[i][pLeader] == 7) { orgtext = "Vlada"; }
            else if(PlayerInfo[i][pLeader] == 8) { orgtext = "Hitman"; }
            else if(PlayerInfo[i][pLeader] == 9) { orgtext = "Novinari"; }
            else if(PlayerInfo[i][pLeader] == 10) { orgtext = "Taxi"; }
            else if(PlayerInfo[i][pLeader] == 11) { orgtext = "Saobracajna Policija"; }
            else if(PlayerInfo[i][pLeader] == 12) { orgtext = "Ruska Mafia"; }
            else if(PlayerInfo[i][pLeader] == 13) { orgtext = "Triads"; }
            else if(PlayerInfo[i][pLeader] == 14) { orgtext = "Yamaguchi"; }
            else if(PlayerInfo[i][pLeader] == 15) { orgtext = "Crips"; }
            else if(PlayerInfo[i][pLeader] == 16) { orgtext = "Bloods"; }
            else if(PlayerInfo[i][pLeader] == 17) { orgtext = "CIA"; }
            else if(PlayerInfo[i][pLeader] == 18) { orgtext = "Groove Street"; }
            else if(PlayerInfo[i][pLeader] == 19) { orgtext = "MS13"; }
                else if(PlayerInfo[i][pLeader] == 20) { orgtext = "Parking Servis"; }
                    else if(PlayerInfo[i][pLeader] == 21) { orgtext = "PA"; }
        format(atext, sizeof(atext), " %s", orgtext);
        strcat(onllideri, atext);
    strcat(onllideri, " | ");
        strcat(onllideri, Ime(i));
        strcat(onllideri, "\n");
      }
    }

            format(stringlideri,sizeof(stringlideri),"%s\n%s\n%s\n%s\n%s",lidercine1,onllideri,lidercine3,lidercine2,lidercine22);
    if(strlen(stringlideri) == 0) return SendClientMessage(playerid, COLOR_GREY, "Nema online lidera!");
    GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "* %s gleda listu online lidera (/lideri) .", sendername);
                ProxDetector(30.0, playerid, string, PURPLE1,PURPLE2,PURPLE3,PURPLE4,PURPLE5);
    ShowPlayerDialog(playerid, Administracija, DIALOG_STYLE_MSGBOX, "Lideri GY servera||organizacije", stringlideri, "OK", "OK");
    return 1;
  }

Video:/
Ne znam zasto nece :D
Poslednja Izmena: Mart 06, 2013, 13:43:42 POSLE PODNE od Nemanja1997