22.07.2017, 12:01
Код:
C:\Users\i5\Desktop\Script\gamemodes\test.pwn(4140) : error 017: undefined symbol "SetVipTime" D:\Users\i5\Desktop\Script\gamemodes\test.pwn(4140) : warning 215: expression has no effect D:\Users\i5\Desktop\Script\gamemodes\test.pwn(4140) : error 001: expected token: ";", but found "]" D:\Users\i5\Desktop\Script\gamemodes\test.pwn(4140) : error 029: invalid expression, assumed zero D:\Users\i5\Desktop\Script\gamemodes\test.pwn(4140) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
forward TimeUpdate(); public TimeUpdate() { if (gTimeStats[1] < 59) { gTimeStats[1] ++; } else { gTimeStats[1] = 0; gTimeStats[0] = gTimeStats[0] < 23 ? gTimeStats[0] + 1 : 0; } new string1[24]; if (gTimeStats[0] < 10) { if (gTimeStats[1] < 10) format(string1, 12, "0%d:0%d", gTimeStats[0], gTimeStats[1]); else format(string1, 12, "0%d:%d", gTimeStats[0], gTimeStats[1]); } else { if (gTimeStats[1] < 10) format(string1, 12, "%d:0%d", gTimeStats[0], gTimeStats[1]); else format(string1, 12, "%d:%d", gTimeStats[0], gTimeStats[1]); } for(new i = 0; i < PLAYERS; i++) { if(SetVipTime[i] == 0) { SetPlayerTime(i, gTimeStats[0], gTimeStats[1]); } } TextDrawSetString(Clock, string1); }