SA-MP Forums Archive
Save amount in string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Save amount in string (/showthread.php?tid=120497)



Save amount in string - Mike Garber - 11.01.2010

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?


Re: Save amount in string - gtapolicemods - 07.02.2010

Has Anyone Have a suggestion for this


Re: Save amount in string - [HiC]TheKiller - 07.02.2010

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);



Re: Save amount in string - mansonh - 07.02.2010

nm


Re: Save amount in string - br0adyb0ii - 19.02.2010

bump