Question
#10

Quote:
Originally Posted by Lixyde
Посмотреть сообщение
BulletRaja Your thing might work but how do i make when the player log again it says your last time in the server? I need to safe the date and the time? If i need tell me how?
That's quite simple. You use OnPlayerDisconnect callback for that:

Код:
new Hour, Minute, Second, Year, Month, Day;
gettime(Hour, Minute, Second);
getdate(Year, Month, Day);
//The following, I did with Y_Ini. It might differ if you don't use Y_Ini.
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"SomeTagHere");
INI_WriteInt(File,"Sec",Second);
INI_WriteInt(File,"Min",Minute);
INI_WriteInt(File,"Hour",Hour);
INI_WriteInt(File,"Day",Day);
INI_WriteInt(File,"Month",Month);
INI_WriteInt(File,"Year",Year);
...
Then, after the player connects, you read the player data from the file, and format the string in one of the fashions shown above.

As for udb_hash. Every time you type your password you sure will need this check done, but a bit differently:

Код:
if(udb_hash(inputtext) == pPass) //You need to do udb_hash for inputtext since your pPass is a result of your password going through udb_hash as well.
Reply


Messages In This Thread
Question - by Lixyde - 22.03.2018, 18:50
Re: Question - by Dutheil - 22.03.2018, 18:52
Re: Question - by Logic_ - 22.03.2018, 18:54
Re: Question - by Lixyde - 22.03.2018, 19:03
Re: Question - by Logic_ - 22.03.2018, 19:08
Re: Question - by BulletRaja - 22.03.2018, 19:08
Re: Question - by PowerMwK - 22.03.2018, 19:09
Re: Question - by Maxandmov - 22.03.2018, 19:09
Re: Question - by Lixyde - 22.03.2018, 19:25
Re: Question - by Maxandmov - 22.03.2018, 19:30

Forum Jump:


Users browsing this thread: 3 Guest(s)