[Pomoc] Errori komandi

Započeo LewSenn, April 05, 2011, 18:05:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

skripta kojuj koristim: Carlito's Roleplay EDIT (moj edit)
problem: pošto želim na toj skripti imat komande /ooc (/o) i /getcar...
razmisljao sam o tome, i racunao sam prebaciti komande iz drug skripte, evo probao sam iz ravensa i evo errora:
CitatC:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1775) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1780) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1781) : error 017: undefined symbol "AdminLog"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1790) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1799) : error 017: undefined symbol "noooc"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1804) : error 017: undefined symbol "pMuted"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1806) : error 017: undefined symbol "TEAM_CYAN_COLOR"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1840) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1841) : error 017: undefined symbol "PublicLog"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1845) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

sad imam 2 pitanja:
1. dali da uzmem iz neke skripte ove 2 komande i iz koje skripte kao imate savjet
2. recite mi ako znate kako se rjiesit errora...
Poslednja Izmena: April 05, 2011, 18:06:07 POSLE PODNE od tbedy
Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

evo ti /o
Citatif(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Nisi se jos logirao !");
               return 1;
           }
         if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   The OOC channel has been disabled by an Admin !");
            return 1;
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been silenced !");
            return 1;
         }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");
            return 1;
         }
         format(string, sizeof(string), "(( %s: %s ))", sendername, result);
         OOCOff(COLOR_OOC,string);
         printf("%s", string);
      }
      return 1;
   }
a evo ti /getcar
Citatif(strcmp(cmd, "/getcar", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /getcar [carid]");
            return 1;
         }
         new Float:plocx,Float:plocy,Float:plocz;
         new plo;
         plo = strval(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 3)
         {
            GetPlayerPos(playerid, plocx, plocy, plocz);
            SetVehiclePos(plo,plocx,plocy+4, plocz);
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "  [{F81414}CroAS{C3C3C3}] Admini samo!!!");
         }
      }
      return 1;
   }

evo errori :(


CitatC:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1755) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1764) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1764) : error 017: undefined symbol "noooc"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1769) : error 017: undefined symbol "pMuted"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1771) : error 017: undefined symbol "TEAM_CYAN_COLOR"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.
Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

Citat: tbedy poslato April 05, 2011, 18:05:37 POSLE PODNE
skripta kojuj koristim: Carlito's Roleplay EDIT (moj edit)
problem: pošto želim na toj skripti imat komande /ooc (/o) i /getcar...
razmisljao sam o tome, i racunao sam prebaciti komande iz drug skripte, evo probao sam iz ravensa i evo errora:

sad imam 2 pitanja:
1. dali da uzmem iz neke skripte ove 2 komande i iz koje skripte kao imate savjet
2. recite mi ako znate kako se rjiesit errora...

nemozes tek tako uzimat komande iz drugih modova :S

stavi komande koje trebas prebacit u svoj mod pa cemo ih "srezat" da odgovaraju tvom modu xd

dragan12

Citat: tbedy poslato April 05, 2011, 18:05:37 POSLE PODNE
skripta kojuj koristim: Carlito's Roleplay EDIT (moj edit)
problem: po¹to ¾elim na toj skripti imat komande /ooc (/o) i /getcar...
razmisljao sam o tome, i racunao sam prebaciti komande iz drug skripte, evo probao sam iz ravensa i evo errora:
CitatC:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1775) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1780) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1781) : error 017: undefined symbol "AdminLog"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1790) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1799) : error 017: undefined symbol "noooc"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1804) : error 017: undefined symbol "pMuted"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1806) : error 017: undefined symbol "TEAM_CYAN_COLOR"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1840) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1841) : error 017: undefined symbol "PublicLog"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1845) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

sad imam 2 pitanja:
1. dali da uzmem iz neke skripte ove 2 komande i iz koje skripte kao imate savjet
2. recite mi ako znate kako se rjiesit errora...
Dodaj pod taj ooc ili kod kojeg je vec error ovo:C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername":
      new sendername[MAX_PLAYER_NAME];
      GetPlayerName(playerid, sendername, sizeof(sendername));
mozes probati sa ovim ooc chat ako hoces:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
	            return 1;
	        }
			if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "   OOC je ugasen od strane Admina !");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "   Ne mozete pricati, oduzeto vam je pravo govora !");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/o)oc [ooc chat]");
				return 1;
			}
			format(string, sizeof(string), "[OOC] %s: %s " , sendername, result);
			OOCOff(COLOR_OOC,string);
			printf("%s", string);
		}
		return 1;
	}

i ovaj /getcar ali cisto sumnjam za oba:
if(strcmp(cmd, "/getcar", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /getcar [carid]");
				return 1;
			}
			new Float:plocx,Float:plocy,Float:plocz;
			new plo;
			plo = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				GetPlayerPos(playerid, plocx, plocy, plocz);
				SetVehiclePos(plo,plocx,plocy+4, plocz);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
			}
		}
		return 1;
	}


Citat: tbedy poslato April 05, 2011, 18:23:46 POSLE PODNE
evo errori :(


CitatC:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1755) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1764) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1764) : error 017: undefined symbol "noooc"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1769) : error 017: undefined symbol "pMuted"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1771) : error 017: undefined symbol "TEAM_CYAN_COLOR"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 017: undefined symbol "sendername"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1774) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


7 Errors.

Ovako eror pMuted stavis ovako:
pod ovo
enum pInfo
stavis
pMuted,

onda dalje eror Noooc moras definirati ovako stavis
new noooc = 0;

Ovo TEAM:CYAN_COLOR moras definirati tu boju evo tikako trebas ubaciti
#define TEAM_CYAN_COLOR 0xFF8282AA

I evo jos ovaj zadnji eror trebas ovo takoder stavit
new sendername[MAX_PLAYER_NAME];

Evo nadam se da sam ti pomogao  ;)

evo sad je samo jedan error :(
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1333) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1703) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1769) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1799) : error 017: undefined symbol "OOCOff"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1802) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1804) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1827) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1829) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(16830) : warning 203: symbol is never used: "sendername"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Poslednja Izmena: April 06, 2011, 20:11:34 POSLE PODNE od tbedy
Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

Probaj ovo stavit
forward OOCOff(color,const string[]);

stavija san vec i sam to, ali nista :(... opet isti errori
Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

Citat: tbedy poslato April 06, 2011, 21:07:57 POSLE PODNE
stavija san vec i sam to, ali nista :(... opet isti errori
Evo ti pa ubaci /ooc ovako
Kod: c
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0) 
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "** MoraÅ¡ se prijaviti !");
	            return 1;
	        }
			if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "** Admin je ISKLJUÄŒIO ooc kanal !");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, TEAM_CYAN_COLOR, "Nemožeš pričati, mutan si");
				return 1;
			}
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[128];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Korištenje: (/o)oc [OOC chat]");
				return 1;
			}
			if(PlayerInfo[playerid][pAdmin] == 0)
			{
				format(string, sizeof(string), "(( %s ))", (result));
			}
			else
			{
			    format(string, sizeof(string), "[[ %s ]]", (result));
			}
   			SendPlayerMessageToAll(playerid, string);
			new year,month,day;
			getdate(year, month, day);
			new hour, minute, second;
			gettime(hour,minute,second);
			format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
			PublicLog(string);
		}
		return 1;
	}


Evo ti i za iskljucivanje
Kod: c
if(strcmp(cmd, "/noooc", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
			{
				noooc = 1;
				BroadCast(COLOR_NICERED, "** OOC chat isključen od strane Admina !");
				format(string, sizeof(string), "[ADMIN]: %s je isključio OOC", sendername);
				ABroadCast(COLOR_LIGHTRED, string, 5);
			}
			else if (PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
			{
				noooc = 0;
				BroadCast(TEAM_GROVE_COLOR, "** OOC chat uključen od strane Admina !");
				format(string, sizeof(string), "[ADMIN]: %s je uključio OOC", sendername);
				ABroadCast(COLOR_LIGHTRED, string, 5);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlašteni koristiti tu komandu!");
			}
		}
		return 1;
	}

ali jos moras stavit
new noooc = 0;
Poslednja Izmena: April 06, 2011, 21:13:07 POSLE PODNE od $--L84S--$

evo errora opet :(
a jos mi treba komanda /getcar

errori:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "** MoraÅ¡ se prijaviti !");
               return 1;
           }
         if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "** Admin je ISKLJUÄŒIO ooc kanal !");
            return 1;
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "NemožeÅ¡ pričati, mutan si");
            return 1;
         }
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[128];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KoriÅ¡tenje: (/o)oc [OOC chat]");
            return 1;
         }
         if(PlayerInfo[playerid][pAdmin] == 0)
         {
            format(string, sizeof(string), "(( %s ))", (result));
         }
         else
         {
             format(string, sizeof(string), "[[ %s ]]", (result));
         }
            SendPlayerMessageToAll(playerid, string);
         new year,month,day;
         getdate(year, month, day);
         new hour, minute, second;
         gettime(hour,minute,second);
         format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
         PublicLog(string);
      }
      return 1;
   }
      if(strcmp(cmd, "/noooc", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
         {
            noooc = 1;
            BroadCast(COLOR_NICERED, "** OOC chat isključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je isključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else if (PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
         {
            noooc = 0;
            BroadCast(TEAM_GROVE_COLOR, "** OOC chat uključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je uključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlaÅ¡teni koristiti tu komandu!");
         }
      }
      return 1;
   }

Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

Citat: tbedy poslato April 07, 2011, 10:37:08 PRE PODNE
evo errora opet :(
a jos mi treba komanda /getcar

errori:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
           if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "** MoraÅ¡ se prijaviti !");
               return 1;
           }
         if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "** Admin je ISKLJUÄŒIO ooc kanal !");
            return 1;
         }
         if(PlayerInfo[playerid][pMuted] == 1)
         {
            SendClientMessage(playerid, TEAM_CYAN_COLOR, "NemožeÅ¡ pričati, mutan si");
            return 1;
         }
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[128];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KoriÅ¡tenje: (/o)oc [OOC chat]");
            return 1;
         }
         if(PlayerInfo[playerid][pAdmin] == 0)
         {
            format(string, sizeof(string), "(( %s ))", (result));
         }
         else
         {
             format(string, sizeof(string), "[[ %s ]]", (result));
         }
            SendPlayerMessageToAll(playerid, string);
         new year,month,day;
         getdate(year, month, day);
         new hour, minute, second;
         gettime(hour,minute,second);
         format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,second, sendername, result);
         PublicLog(string);
      }
      return 1;
   }
      if(strcmp(cmd, "/noooc", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 2 && (!noooc))
         {
            noooc = 1;
            BroadCast(COLOR_NICERED, "** OOC chat isključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je isključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else if (PlayerInfo[playerid][pAdmin] >= 2 && (noooc))
         {
            noooc = 0;
            BroadCast(TEAM_GROVE_COLOR, "** OOC chat uključen od strane Admina !");
            format(string, sizeof(string), "[ADMIN]: %s je uključio OOC", sendername);
            ABroadCast(COLOR_LIGHTRED, string, 5);
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlaÅ¡teni koristiti tu komandu!");
         }
      }
      return 1;
   }


Koj ije eroor postaj tu ??

CitatC:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1334) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1704) : warning 219: local variable "sendername" shadows a variable at a preceding level
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1761) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1770) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1806) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1807) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1812) : error 017: undefined symbol "PublicLog"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1814) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1816) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1823) : error 017: undefined symbol "BroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1825) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1830) : error 017: undefined symbol "BroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1832) : error 017: undefined symbol "ABroadCast"
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1839) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(1841) : warning 217: loose indentation
C:\Documents and Settings\Toni Bedy\Desktop\lecevica 2\gamemodes\crp.pwn(16842) : warning 203: symbol is never used: "sendername"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

eto erroraaaa :D
Rehab RolePlay [0.3.7-R2] - https://discord.gg/XCjRc2U

91.121.21.54:8743

Evo ovako jedan eror stavi ovako
forward PublicLog(string[]);

Drugi ti je takoder forward stavis ovako
forward ABroadCast(color,const string[],level);

i jos ovako
forward BroadCast(color,const string[]);

i to je to  :)