SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/04/2012, 09:25 PM   #1
TheBluec0de
Gangsta
 
TheBluec0de's Avatar
 
Join Date: Mar 2011
Posts: 569
Reputation: 12
Default [HELP]It's possible ?

it's possible use one string for all format ecc ? is a good idea or not ?
TheBluec0de is offline   Reply With Quote
Old 10/04/2012, 09:28 PM   #2
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 345
Default Re: [HELP]It's possible ?

What do you mean having a global string to use for all formats?

If that yes.

Example:

pawn Code:
new string[128];

new money = GetPlayerMoney(playerid);
format(string,sizeof(string), "Money =  %d.",money);

new score = GetPlayerScore(playerid);
format(string,sizeof(string), "Score =  %d.",score);
Kitten is offline   Reply With Quote
Old 10/04/2012, 09:32 PM   #3
TheBluec0de
Gangsta
 
TheBluec0de's Avatar
 
Join Date: Mar 2011
Posts: 569
Reputation: 12
Default Re: [HELP]It's possible ?

ok.... solved
TheBluec0de is offline   Reply With Quote
Reply

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



All times are GMT. The time now is 07:23 AM.


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