Saving jailtime to mysql
#4

Quote:
Originally Posted by Yako
Посмотреть сообщение
I want that the PInfo[playerid][JailTime] would be lower by 1 each second, can you help me?
Sure. Just use a timer. Read this page on the wiki. Each 1,000 milliseconds, subtract 1 from the variable via either 'pInfo[playerid][JailTime]--' or pInfo[playerid][JailTime] = (pInfo[playerid][JailTime] - 1). Then every 30 seconds or some other reasonable interval, update the SQL database.
Reply


Messages In This Thread
Saving jailtime to mysql - by Yako - 21.04.2012, 13:05
Re: Saving jailtime to mysql - by Ainseri - 21.04.2012, 13:34
Re: Saving jailtime to mysql - by Yako - 21.04.2012, 13:56
Re: Saving jailtime to mysql - by Ainseri - 21.04.2012, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)