Worldtime.
#1

Can anyone to tell me how to do like,

pawn Код:
OnGameModeInIt()
{
   SetWorldTime(0);
   return 1;
}
Time 00:00 ( Server Starts )
2 Minutes...
Time 01:00
2 Minutes...
Time 02:00

etc.
Like
wait2minplox;
worldTime ++;
wait2minplox;
worldTime ++;
Reply
#2

pawn Код:
public OnGameModeInIt()
{
   SetWorldTime(0);
   SetTimer("mytimer",60*2*1000,1);
   return 1;
}

forward mytimer();
public mytimer()
{
new min;
min++;
SetWorldTime(min);
}
Reply
#3

Quote:
Originally Posted by CoverH.ng
pawn Код:
public OnGameModeInIt()
{
   SetWorldTime(0);
   SetTimer("mytimer",60*2*1000,1);
   return 1;
}

forward mytimer();
public mytimer()
{
new min;
min++;
SetWorldTime(min);
}
No errors but.
Код:
warning 219: local variable "min" shadows a variable at a preceding level
Reply
#4

Change every "min" in that bit of script to "min1"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)