27.02.2016, 15:31
(
Последний раз редактировалось KONTROWKEN; 27.02.2016 в 17:51.
)
Код:
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]); } }