09.08.2016, 16:52
Not working (i can't see gametext or textdraw) and 1 warning
Quote:
warning 219: local variable "playerid" shadows a variable at a preceding level |
Код:
forward CountDown1(playerid); public CountDown1(playerid) { --> foreach(Player, playerid) { if(IsPlayerInDynamicCP(playerid, CP[CAPZONE]) && UnderAttack[CAPZONE] == 1 && IsPlayerCapturing[playerid][CAPZONE] == 1) { if(CountVar[playerid][CAPZONE] == 0) return KillTimer(ctimer[playerid]); CountVar[playerid][CAPZONE]--; new str1[124]; TextDrawShowForPlayer(playerid, CountText[playerid]); format(str1, sizeof(str1),"~r~%d seconds ~w~left to ~g~capture", CountVar[playerid][CAPZONE]); TextDrawSetString(CountText[playerid], str1); } } return 1; }