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