Simple Help !
Hello pro ppl,
I need a little help. So, for example I have two integer numbers or two strings and if I want to combine both strings to one string or number then how it can be done in AMX ? Thanks |
Re: Simple Help !
format(ex)
|
Re: Simple Help !
Okay ! Another thing is if I have an array of my name and I want to combine array data and store it into a string variable ?
|
Re: Simple Help !
Quote:
|
Re: Simple Help !
new szBuffer[64];
formatex( szBuffer, charsmax(szBuffer), "%s %s", szFirstText, szSecondText) |
Re: Simple Help !
Quote:
|
Re: Simple Help !
Quote:
so each index will have 1 word. Now I want to convert array data to a string variable so when I call string variable "GOD" should be printed ! |
Re: Simple Help !
Not possible as "GOD" is 3 characters and can only fit in an array of 4 or larger.
A string is an array of characters. So what are you trying to do? |
Re: Simple Help !
I just want to convert Array data to String. Actually I want to store whole array data into the string variable !
|
Re: Simple Help !
A string is already an array. Show us what you are working with and then maybe we can help you
|
| All times are GMT -4. The time now is 06:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.