[HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level
#1

Код:
C:\Users\KONTROWKEN\Desktop\SERVER\gamemodes\KONT-2016.pwn(9902) : warning 219: local variable "NULL" shadows a variable at a preceding level
C:\Users\KONTROWKEN\Desktop\SERVER\gamemodes\KONT-2016.pwn(9902) : warning 219: local variable "NULL" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Код:
this<StartEvent>NULL->func {
	SendClientMessageToAll(-1, formatEx((g_iEvent[e_Players] > 0) ? ("{FFDB00}-> {ee5555}' %s ' {FFFFFF}isimli etkinlik katılımları {ee5555}sona {FFFFFF}erdi.") : ("{FFDB00}-> {ee5555}' %s ' {FFFFFF}isimli etkinlik katılımları {ee5555}iptal {FFFFFF}oldu."), g_iEvent[e_Name]));
	for(new i, j = GetMaxPlayers(); i != j && IsPlayerConnected(i); ++i) {
	    if(g_Flags[i] & e_Response) {
	    	ShowPlayerDialog(i, 2135, DIALOG_STYLE_MSGBOX, "Event - Start", (g_iEvent[e_Players] > 0) ? ("{FFDB00}-> {FFFFFF}Etkinlik başladı!") : ("{FFDB00}-> {FFFFFF}Etkinlik iptal!"), "OK", "");
		}
	}
	for(new i = 0; i < _: e_Event; ++i) {
		g_iEvent[e_Event: i] = _: 0;
	}
}

this<v_Count>playerid->func {
	if(_: countDown[playerid] != 0) {
	    GameTextForPlayer(playerid, (countDown[playerid] == 5) ? ("~g~5")
		: ((countDown[playerid] == 4) ? ("~p~4")
			: ((countDown[playerid] == 3) ? ("~y~3")
				: ((countDown[playerid] == 2) ? ("~w~2")
				    : ((countDown[playerid] == 1) ? ("~r~1")
						: ("~r~Go!~n~~p~Go!~n~~y~Go!"))))), 1000, 5);
		--countDown[playerid];
	} else {
	    TogglePlayerControllable(playerid, true);
	    KillTimer(gTimer[playerid]);
	}
}
Reply
#2

Help..
Reply
#3

So which line is 9853
Reply
#4

Quote:
Originally Posted by justinnater
Посмотреть сообщение
So which line is 9902
Reply
#5

This is the exact reason I dislike custom syntax. Vague errors that are impossible to trace.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)