Strings without a length are deprecated, please add a destination size.
#2

pawn Код:
format(str, sizeof(str), "%d", time);
if(strlen(str) != 7)
Is this what you wanted?

This simply formats it into a string, and then checks the length of the string

If not, what did you want again? I'm tired, so don't blame me. It looks like you already made it so if time is less than 10 it returns a message, shouldn't that work?
Reply


Messages In This Thread
Strings without a length are deprecated, please add a destination size. - by HydraX - 16.08.2012, 18:48
Re: Strings without a length are deprecated, please add a destination size. - by Kindred - 16.08.2012, 18:54
Respuesta: Re: Strings without a length are deprecated, please add a destination size. - by HydraX - 16.08.2012, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)