SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 11/01/2010, 06:16 PM   #1
Mike Garber
Join Date: Feb 2008
Location: Sweden
Posts: 1,506
Reputation: 6
Default Save amount in string

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?
Mike Garber is offline  
Old 07/02/2010, 03:13 AM   #2
Big Clucker
Join Date: Jul 2009
Location: Southgate, Michigan
Posts: 111
Reputation: 0
Default Re: Save amount in string

Has Anyone Have a suggestion for this
gtapolicemods is offline  
Old 07/02/2010, 03:32 AM   #3
Join Date: Mar 2008
Location: New Zealand
Posts: 2,629
Reputation: 410
Default Re: Save amount in string

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


pawn Code:
#define Valstr(%1, %2) format(%2, strlen(%2), "%d", %1);
[HiC]TheKiller is offline  
Old 07/02/2010, 03:33 AM   #4
Join Date: Jun 2009
Posts: 602
Reputation: 0
Default Re: Save amount in string

mansonh is offline  
Old 19/02/2010, 08:45 AM   #5
Big Clucker
br0adyb0ii's Avatar
Join Date: Sep 2009
Location: Melboure, Australia
Posts: 72
Reputation: 6
Default Re: Save amount in string


br0adyb0ii is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Certain amount of time before it goes onto.. Torran Help Archive 7 21/02/2010 08:15 PM
Exp amount juuleman Help Archive 11 23/11/2009 03:35 PM
/Buybeer amount Sal_Kings Help Archive 21 15/10/2009 10:29 AM
/Buybeer amount. Sal_Kings Help Archive 1 14/10/2009 01:38 PM
Amount of players.. Craze General 7 19/08/2009 03:19 AM

All times are GMT. The time now is 07:46 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.