Error 033
#1

I'm adding a new command to my gamemode looks like that:

Код:
new CallSign[MAX_PLAYERS][256];
When doing the command /callsign:

Код:
format(CallSign[playerid], 256, "%s", params);
And to see the callsigns: /callsigns

Код:
foreach(Player, i)
	{
	    if(PlayerInfo[playerid][pFac] == PlayerInfo[i][pFac])
	    {
		    if(PlayerInfo[i][pFacDuty] && IsAOfficer(i))
		    {
			    if(CallSign[i])
			    {
			        duty ++;
			    }
			}
		}
	}
	format(string, sizeof(string), "_______| On Duty Cops: %d |_______", duty);
	SendClientMessage(playerid, COLOR_GREEN, string);
	foreach(Player, i)
	{
	    if(PlayerInfo[playerid][pFac] == PlayerInfo[i][pFac])
	    {
		    if(CallSign[i] && PlayerInfo[i][pFacDuty])
		    {
      			format(string, sizeof(string), "[%d] %s: %s", i, RPN(i), CallSign[i]);
		        SendClientMessage(playerid, COLOR_COP, string);
		    }
		}
	}
Basically I get the three 033 errors on the command callsigns about CallSign[i] three times shown three errors:

Код:
C:\Users\user\Desktop\Land of Role Play\gamemodes\LORP.pwn(14379) : error 033: array must be indexed (variable "CallSign")
C:\Users\user\Desktop\Land of Role Play\gamemodes\LORP.pwn(14392) : error 033: array must be indexed (variable "CallSign")
C:\Users\user\Desktop\Land of Role Play\gamemodes\LORP.pwn(14430) : error 033: array must be indexed (variable "CallSign")
Reply


Messages In This Thread
Error 033 - by maiky1499 - 27.12.2014, 14:28
Re: Error 033 - by maiky1499 - 27.12.2014, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)