tJoinRules detected as undefined
#1

Код:
error 017: undefined symbol "tJoinRules"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

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


4 Errors.
I have tried to use "Text:tJoinRules[5];" and "Text:tJoinRules;"

but still not working.

last time i tried
PHP код:
new    Text:tJoinRules;
new    
Text:tJoinRules[0];
new    
Text:tJoinRules[1];
new    
Text:tJoinRules[2];
new    
Text:tJoinRules[3];
new    
Text:tJoinRules[4]; 
still,not working too.

Код:
stock ToggleTextDrawsForPlayer(playerid, type, bool:toggle)
{
	switch(type)
	{
		case TEXTDRAWS_JOIN_RULES:
		{
			if(toggle)
			{
				TextDrawShowForPlayer(playerid, tJoinRules[0]); // 996,which is the current error.
				TextDrawShowForPlayer(playerid, tJoinRules[1]);
				TextDrawShowForPlayer(playerid, tJoinRules[2]);
				TextDrawShowForPlayer(playerid, tJoinRules[3]);
				TextDrawShowForPlayer(playerid, tJoinRules[4]);
			}
			else
			{
				TextDrawHideForPlayer(playerid, tJoinRules[0]);
				TextDrawHideForPlayer(playerid, tJoinRules[1]);
				TextDrawHideForPlayer(playerid, tJoinRules[2]);
				TextDrawHideForPlayer(playerid, tJoinRules[3]);
				TextDrawHideForPlayer(playerid, tJoinRules[4]);
			}
		}
	}
	return 1;
}
Reply
#2

bump
Reply
#3

Remove them all and write this instead of them
PHP код:
new    Text:tJoinRules[5]; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)