Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Maj 19, 2018, 14:56:07 POSLE PODNE

Naslov: Errori kod jedne linije!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Maj 19, 2018, 14:56:07 POSLE PODNE
Imam error kod ove jedne linije ili ti kod komande cc!!
Cela komanda: [pawn]YCMD:cc(playerid, params[], help)
{
    #pragma unused help
   #pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"LG:RPG | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
   if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
   {
        new sati, minuta, dan, mesec, godina;
      getdate(godina, mesec, dan);
        gettime(sati, minuta);
        new string[128]; foreach(Player,i) { OcistiChat(i, 120); }
      format(string,sizeof(string),""SVETLOPLAVA"[LG:RPG] "ORANGE"Chat ociscen od strane %s. "BELA"| "SVETLOPLAVA"www.legacygaming-rpg.proboards.com.", GetName(playerid));
        SCMTA(-1,string);
        format(string,sizeof(string),""SVETLOPLAVA"[LG:RPG] "ORANGE"Sada je: %d:%d! | Datum: %d.%d.%d! | "SVETLOPLAVA"Hvala vam sto igrate na nasem serveru!", sati, minuta, dan, mesec, godina);
      SCMTA(-1,string);
       }
   else
   {
      SCM(playerid, -1, "[LG:RPG] "ZUTA"Samo Admini & GameMasteri!");
   }
   return 1;
}[/pawn]
Error kod linije [pawn]      format(string,sizeof(string),""SVETLOPLAVA"[LG:RPG] "ORANGE"Chat ociscen od strane "SVETLOPLAVA"%s. "BELA"| "SVETLOPLAVA"www.legacygaming-rpg.proboards.com.", GetName(playerid));[/pawn]
Erori: [pawn]C:\Users\Buster\Desktop\Legacy Gaming RPG by Buster\gamemodes\LegacyGaming.pwn(29538) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Buster\Desktop\Legacy Gaming RPG by Buster\gamemodes\LegacyGaming.pwn(29538) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Buster\Desktop\Legacy Gaming RPG by Buster\gamemodes\LegacyGaming.pwn(29538) : warning 215: expression has no effect
C:\Users\Buster\Desktop\Legacy Gaming RPG by Buster\gamemodes\LegacyGaming.pwn(29538) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Buster\Desktop\Legacy Gaming RPG by Buster\gamemodes\LegacyGaming.pwn(29538) : fatal error 107: too many error messages on one line[/pawn]
Naslov: Odg: Errori kod jedne linije!
Poruka od: ᗪ卂乂 poslato Maj 19, 2018, 16:36:41 POSLE PODNE
Umesto SCMTA napisi SendClientMessageToAll ili dodaj na vrhu skripte #define SCMTA  SendClientMessageToAll i dodaj ovaj public
[pawn]forward OcistiChat(playerid, lines);
public OcistiChat(playerid, lines)
{
   for(new i = 0; i < lines; i++)
   {
      SCM(playerid, -1, " ");
   }
   return 1;
}[/pawn]
Naslov: Odg: Errori kod jedne linije!
Poruka od: InasSkripterlji poslato Maj 19, 2018, 19:16:42 POSLE PODNE
Daj mi samo tu liniju mrsko mi trazit  :P
Naslov: Odg: Errori kod jedne linije!
Poruka od: ʙᴜsᴛᴇʀ ᴄᴏɴɴᴇʟʟʏ poslato Maj 19, 2018, 20:16:05 POSLE PODNE
Citat: á—ªå,ä¹, poslato Maj 19, 2018, 16:36:41 POSLE PODNE
Umesto SCMTA napisi SendClientMessageToAll ili dodaj na vrhu skripte #define SCMTA  SendClientMessageToAll i dodaj ovaj public
[pawn]forward OcistiChat(playerid, lines);
public OcistiChat(playerid, lines)
{
   for(new i = 0; i < lines; i++)
   {
      SCM(playerid, -1, " ");
   }
   return 1;
}[/pawn]
Hahahaha, brate, opet znaci sve isti errori kao do sada, a uradio sam sve kako si reko....
Evo ti linija sa errorima:
      format(string,sizeof(string),""SVETLOPLAVA"[LG:RPG] "ORANGE"Chat ociscen od strane "SVETLOPLAVA"%s. "BELA"| "SVETLOPLAVA"www.legacygaming-rpg.proboards.com.", GetName(playerid));
Naslov: Odg: Errori kod jedne linije!
Poruka od: ᗪ卂乂 poslato Maj 20, 2018, 00:43:41 PRE PODNE
E nisam sad kuci da ti posaljem vrv je nest oko getname, aj obrisi tu liniju i ovo ispod te linije tj SCMTA(-1, string); pa vidi je l ima errora
Naslov: Odg: Errori kod jedne linije!
Poruka od: ante2307 poslato Maj 22, 2018, 20:49:19 POSLE PODNE
Povrh skripte dodaj #define SCMTA SendClientMessageToAll