gettime() help
#1

Why I can't store gettime? I make it like this:

Code:
PlayerInfo[id][pTime] = gettime();
Reply
#2

Wtf
PHP Code:
native gettime(&hour,&minute,&second); 
Reply
#3

Quote:
Originally Posted by AbyssMorgan
View Post
Wtf
PHP Code:
native gettime(&hour,&minute,&second); 
If you took the time to look up the wiki page, you should've also noted that:
Quote:

Return Values:
The function itself returns a Unix Timestamp, however if arguments are specified then the hours, minutes and seconds for the current time are returned.

OP's code is perfectly valid syntax, assuming that pTime is an integer.
Reply
#4

Here is saving and loading using YINI

enum pTime

load
Code:
INI_Int("Time",PlayerInfo[playerid][pTime]);
save
Code:
INI_WriteInt(File,"Time",PlayerInfo[playerid][pTime]);
and still can't save it, value in .ini file is 0
Reply
#5

bump
Reply
#6

Whats ID supposted to represent?
pawn Code:
PlayerInfo[id][pTime] = gettime(); //ID? other player? inside a command?
Reply
#7

Yes. Solved, was an issue with y_ini.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)