newbie chat

Započeo mikic1234, Avgust 03, 2022, 11:20:06 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ubacio sam newbie chat kao na skill i kad compilujem izbaci mi errore
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(60304) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(60304) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(60304) : warning 215: expression has no effect
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(60304) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(60304) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.4           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

/////////////NewBie Chat!/////////////////////////////////
stock nisiulogovan(playerid)
{
    SCM(playerid,-1,""CRVENA"ERROR: "BELA"Moras se ulogovati da bi koristio komande");
   return 1;
}
forward AdminGameMasterNewbie(color, string[]);
public AdminGameMasterNewbie(color, string[])
{
   foreach(Player,i)
   {
       if(UlogovanProvera == 1)
      {
         if(PlayerInfo[pGM] >= 1|| PlayerInfo[pAdmin] >= 1 || PlayerInfo[pLevel] <= 6 || PlayerInfo[pTestAdmin] == 1)
         {
            if(TogNChat == 0)
             {
               SendClientMessage(i, color, string);
            }
         }
      }
   }
}
CMD:n(playerid, params[])
{
    //#pragma unused help
    if(UlogovanProvera[playerid] == 0) return nisiulogovan(playerid);
    if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pTestAdmin] >= 1 || PlayerInfo[playerid][pLevel] >= 4)
   {
   if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,""skra" "BELA"Ne mozete koristiti ovu komandu jer ste zatvoreni!");
   if((chatn)) return SCM(playerid, -1, ""SPLAVA""skra" - "BELA"N je chat je iskljucen,ne mozes je to je!");
   if(gettime() < Nchat[playerid]  && PlayerInfo[playerid][pAdmin] != 7 && PlayerInfo[playerid][pAdmin] != 1 && PlayerInfo[playerid][pAdmin] != 2 && PlayerInfo[playerid][pAdmin] != 3 && PlayerInfo[playerid][pAdmin] != 4 && PlayerInfo[playerid][pAdmin] != 5 && PlayerInfo[playerid][pAdmin] != 6 && PlayerInfo[playerid][pAdmin] != 7 && PlayerInfo[playerid][pAdmin] != 8) return SCM(playerid, -1, ""CRVENA"»ERROR« "BELA" Svakih 15 Sekundi");
   new text[256], string[312], sendername[MAX_PLAYER_NAME];
   GetPlayerName(playerid, sendername, sizeof(sendername));
   if(sscanf(params, "s[1024]", text)) return SCM(playerid, -1, ""skra" Pomoc | "SIVA" /n [tekst]");
   if(strfind(text, "muslimansko") != -1) return SCM(playerid,-1, ""CRVENA"// REKLI SMO MOZES SVE SEM NACIONALIZMA ?");
   if(strfind(text, "cetnicko") != -1) return SCM(playerid,-1, ""CRVENA"// REKLI SMO MOZES SVE SEM NACIONALIZMA ?");
   if(strfind(text, "dzamiju") != -1) return SCM(playerid,-1, ""CRVENA"// REKLI SMO MOZES SVE SEM NACIONALIZMA ?");
   if(strfind(text, "crkvu") != -1) return SCM(playerid,-1, ""CRVENA"// REKLI SMO MOZES SVE SEM NACIONALIZMA ?");
   if(strfind(text, "muslimansku") != -1) return SCM(playerid,-1, ""CRVENA"// REKLI SMO MOZES SVE SEM NACIONALIZMA ?");
   new arank[124];
   if(PlayerInfo[playerid][pTestAdmin] == 1) { arank = ""USORANGE"•Test Admin•"; }
   else if(PlayerInfo[playerid][pAdmin] == 1) { arank = ""col_ljubicasta"•Admin 1•"; }
   else if(PlayerInfo[playerid][pAdmin] == 2) { arank = ""col_ljubicasta"•Admin 2•"; }
   else if(PlayerInfo[playerid][pAdmin] == 3) { arank = ""col_ljubicasta"•Admin 3•"; }
   else if(PlayerInfo[playerid][pAdmin] == 4) { arank = ""col_ljubicasta"•Admin 4•"; }
   else if(PlayerInfo[playerid][pAdmin] == 5) { arank = ""col_ljubicasta"•Head Admin•"; }
   else if(PlayerInfo[playerid][pAdmin] == 6) { arank = ""col_ljubicasta"•Admin Level 6 ( Direktor )•"; }
   else if(PlayerInfo[playerid][pAdmin] == 7) { arank = ""col_ljubicasta"•Vlasnik•"; }
   else if(PlayerInfo[playerid][pAdmin] == 8) { arank = ""col_ljubicasta"•Developer•"; }
   else if(PlayerInfo[playerid][pGM] == 1) { arank = "•Test Admin 1•"; }
   else if(PlayerInfo[playerid][pGM] == 2) { arank = "•Test Admin 2•"; }
   else if(PlayerInfo[playerid][pLevel] == 5) { arank = "•Newbie•"; }
   else if(PlayerInfo[playerid][pLevel] == 6) { arank = "•Newbie•"; }
   format(string, sizeof(string), ""USORANGE"[NEWBIE] "USORANGE"%s ["USORANGE" %s "USORANGE"| "BELA"ID:%d"USORANGE"] -"BELA" %s",sendername,arank,playerid,text);
   AdminGameMasterNewbie(-1,string);
   Nchat[playerid] = gettime() + 15;
   }
   return (true);
}

objavi lepo po formularu ovako ne vidim nista

Posalji tu liniju gde izbacuje error

Citat: .paradoxDSGN poslato Avgust 03, 2022, 13:50:59 POSLE PODNE
objavi lepo po formularu ovako ne vidim nista
Nije ovo pomoc u vezi pawn, vecina su izgubili volju da tamo ceraju svoj inat pa sad ulecu ovako ko padobranci i druge podforume.


Linija
SCM(playerid,-1,""CRVENA"ERROR: "BELA"Moras se ulogovati da bi koristio komande");

Errori:
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(81928) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(81928) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(81928) : warning 215: expression has no effect
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(81928) : error 001: expected token: ";", but found "-integer value-"
C:\Users\Mihajlo\Desktop\Reborn RolePlay\gamemodes\reborn-script.pwn(81928) : fatal error 107: too many error messages on one line


Stavi sendclientmessage a moguce da je do boja jer mora biti u formatu #define  Crvena   {BOJA}

SendClientMessage(playerid, -1, "{FF0000}"ERROR: "{FFFFFF}"Moras se ulogovati da bi koristio komande");

Probaj tako ako ne probaj

SCM(playerid, -1, "{FF0000}"ERROR: "{FFFFFF}"Moras se ulogovati da bi koristio komande");
Poslednja Izmena: Avgust 03, 2022, 15:35:00 POSLE PODNE od Goku ^

Citat: Goku ^ poslato Avgust 03, 2022, 15:33:24 POSLE PODNE
SendClientMessage(playerid, -1, "{FF0000}"ERROR: "{FFFFFF}"Moras se ulogovati da bi koristio komande");

Probaj tako ako ne probaj

SCM(playerid, -1, "{FF0000}"ERROR: "{FFFFFF}"Moras se ulogovati da bi koristio komande");
Zasto mislis da ako to prvo ne radi, da ce ovo "SCM..." da ti radi, lmao, dokle cete tako glupi da pomazete drugima...

Citat: PazzOnee poslato Avgust 03, 2022, 15:39:42 POSLE PODNE
Zasto mislis da ako to prvo ne radi, da ce ovo "SCM..." da ti radi, lmao, dokle cete tako glupi da pomazete drugima...
Nisam ni provalio da sam napisao to LMAO danke, a i ako si pametan pomogni mu umesto da seres ovde.

Citat: Goku ^ poslato Avgust 03, 2022, 15:46:20 POSLE PODNE
Nisam ni provalio da sam napisao to LMAO danke, a i ako si pametan pomogni mu umesto da seres ovde.
Kad slepac bude zasluzio pomoc, pomoci cu. Zna se da se kod stavlja u bbcode, pawn tag, pastebin etc. A dok ovako pitaju za pomoc dobice tukishu

Citat: PazzOnee poslato Avgust 03, 2022, 16:20:42 POSLE PODNE
Kad slepac bude zasluzio pomoc, pomoci cu. Zna se da se kod stavlja u bbcode, pawn tag, pastebin etc. A dok ovako pitaju za pomoc dobice tukishu
Ok kako ti kazes :D