format problem
#1

Hey, heres my problem, gonna explain it by first showing the code as I believe that would be easiest
Original Code:
pawn Код:
format(string,sizeof(string),"Usage: /gotoint [0-%d]",totalint); // Outputs 32 at %d
The edited code:
pawn Код:
format(string,sizeof(string),"Usage: /gotoint [0-%d]",1-totalint); // Outputs 31 at %d that's what I want
However it also outputs 2 of the - at the message so it would be like this:

Код:
Usage: /gotoint [0--31]
I there a way to remove one of the - or am I just doing it the wrong way?
Reply


Messages In This Thread
format problem - by oliverrud - 13.07.2010, 18:45
Re: format problem - by Hiddos - 13.07.2010, 18:47
Re: format problem - by RyDeR` - 13.07.2010, 18:48
Re: format problem - by oliverrud - 13.07.2010, 18:51
Re: format problem - by -Rebel Son- - 13.07.2010, 18:59
Re: format problem - by oliverrud - 13.07.2010, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)