Time Update
#1

Код:
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.
Code:

Код:
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);

}
Can someone help me with fixing it? I tried stuff myself but can't fix it.
Reply


Messages In This Thread
Time Update - by Uvais - 22.07.2017, 12:01
Re: Time Update - by Bolex_ - 22.07.2017, 12:06
Re: Time Update - by Uvais - 22.07.2017, 12:11
Re: Time Update - by jlalt - 22.07.2017, 12:16
Re: Time Update - by Bolex_ - 22.07.2017, 12:16
Re: Time Update - by Uvais - 22.07.2017, 12:19

Forum Jump:


Users browsing this thread: 2 Guest(s)