A question about changing Miliseconds to minutes.
#4

mhh, im not sure but i think he meant to check if the time the player entered is in a range you want it to be.
As there could occur bugs if a player enters a negative time value, strings, floats or whatever.

To prevent this just do smth. like this: (this is just an example you have to adjust it to ur needs ofc.)

pawn Код:
if(thetime<1)return SendClientMessage(playerid,0xFF0000FF,"The JailTime must be at least 1 minute!");
Hope this helps
Reply


Messages In This Thread
A question about changing Miliseconds to minutes. - by Thunderbolt - 02.01.2012, 19:13
Re: A question about changing Miliseconds to minutes. - by PawnoQ - 02.01.2012, 19:21
Re: A question about changing Miliseconds to minutes. - by Thunderbolt - 02.01.2012, 19:27
Re: A question about changing Miliseconds to minutes. - by BlackWolf120 - 02.01.2012, 19:35
Re: A question about changing Miliseconds to minutes. - by Thunderbolt - 02.01.2012, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)