[HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level (
/showthread.php?tid=601854)
[HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level -
KONTROWKEN - 27.02.2016
Код:
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]);
}
}
Re: [HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level -
KONTROWKEN - 27.02.2016
Help..
Re: [HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level -
justinnater - 27.02.2016
So which line is 9853
Re: [HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level -
KONTROWKEN - 27.02.2016
Quote:
Originally Posted by justinnater
So which line is 9902
|
Re: [HELP] Warning 219: local variable "NULL" shadows a variable at a preceding level -
Vince - 27.02.2016
This is the exact reason I dislike custom syntax. Vague errors that are impossible to trace.