Variable length
#2

The length? Don't you mean the value?
If you mean length, use strlen. (string length)

pawn Код:
new
    tmpString[ 64 ];
   
    format( tmpString, sizeof( tmpString ), "%d", PlayerInfo[playerid][pLevel] );
    format( tmpString2, sizeof( tmpString2 ), "%d", strlen(tmpString) );
    print( tmpString2 );
Reply


Messages In This Thread
Variable length - by loleteviejo - 28.10.2009, 17:19
Re: Variable length - by woot - 28.10.2009, 17:23
Re: Variable length - by loleteviejo - 28.10.2009, 21:25
Re: Variable length - by woot - 28.10.2009, 21:27
Re: Variable length - by dice7 - 28.10.2009, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)