Save amount in string
#1

How can I save amount to a string/variable?

Like If I fine someone with a fine command, how can I save strval(tmp); so the player can do /payticket later?
Reply
#2

Has Anyone Have a suggestion for this
Reply
#3

pawn Code:
stock Valstr(Val, str[])
{
  format(str, strlen(str), "%d", Val);
}
Or

pawn Code:
#define Valstr(%1, %2) format(%2, strlen(%2), "%d", %1);
Reply
#4

nm
Reply
#5

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)