Stock SendToAdmins +rep for helping me!
#1

I get an error with my stock which is used in my command!

Код:
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(89) : error 017: undefined symbol "Player"
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(89) : warning 215: expression has no effect
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(89) : error 001: expected token: ";", but found "]"
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(89) : error 029: invalid expression, assumed zero
C:\Users\Callum.Acer\Desktop\Scripting extra\gamemodes\Gamemode.pwn(89) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

4 Errors.
Stock:

Код:
stock SendToAdmins(playerid, color, text[])
{
	for(new i; i < MAX_PLAYERS; i++)
	{
	    if(Player[i][pAdmin] >= 1) // Line 89
	    {
	        SendClientMessage(i, color, text);
		}
	}
	return 1;
}
Reply
#2

You're not using the correct variable for admins
u need to define the correct one
Reply
#3

put this except " if(Player[i][pAdmin] >= 1) // Line 89"
Put this : LevelCheck( playerid, 1 );
Check
Reply
#4

Show us the enum where you've placed pAdmin
Reply
#5

I have placed it
Quote:

enum PlayerInfo
{
Pass[129],
pAdmin,
pMod,
pMoney,
pLevels
}

Reply
#6

Add this:
pawn Код:
new Player[MAX_PLAYERS][PlayerInfo];
Reply
#7

When i try
Quote:

new Player[MAX_PLAYERS][PlayerInfo];

I get 6 errors!
Reply
#8

Actually, it should be
pawn Код:
new Player;
or,
pawn Код:
enum PlayerData
{
   Player
};
new PlayerInfo[MAX_PLAYERS][PlayerData]; //Variable that stores enumerator above
Reply
#9

Can you show 2-3 more lines which are placed after enum?
Reply
#10

Still 4 Errors!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)