Raised This Month: $51 Target: $400
 12% 

String concatenate number


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zsolt225
Junior Member
Join Date: Jun 2013
Old 10-31-2017 , 19:02   String concatenate number
Reply With Quote #1

Hello everyone!
How is it necessary to add a text to my mouth?
char full[256]
GetCmdArgString(full, sizeof(full))
new String:linkName[] = "http://xxxx.hu/?volume=ide I would like the number;
I gave a thought to this this runs onto a mistake unfortunately only:
new String:linkName[] = "http://xxxxx.hu/?volume=%d",full;

Last edited by zsolt225; 10-31-2017 at 19:03.
zsolt225 is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 11-01-2017 , 01:45   Re: String concatenate number
Reply With Quote #2

I dont understand
ESK0 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-01-2017 , 03:18   Re: String concatenate number
Reply With Quote #3

Use the Format native.
__________________
asherkin is offline
zsolt225
Junior Member
Join Date: Jun 2013
Old 11-01-2017 , 08:15   Re: String concatenate number
Reply With Quote #4

decl String:blah[512]
Format(blah, sizeof(blah), "%s%s", linkName, full)
Thank you!
zsolt225 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 14:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode