Raised This Month: $ Target: $400
 0% 

Change a letter in a string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
elpouletorange
Senior Member
Join Date: Oct 2007
Old 05-25-2009 , 17:36   Change a letter in a string
Reply With Quote #1

Hello, this isn't okay but I don't know how to do it.

Code:
 
1   new nextmap[32]
2   get_cvar_string("amx_nextmap", nextmap, 31)
3   if (nextmap[0] == "a")
4    {
5     nextmap[0] = "A"
6    }
I want to change the first letter of the string nextmap to the same but in MAJ. My example is what it do if the first letter is "a".

Error: Array must be indexed (variable "-unknown-") on line 3
Error: Must be assigned to an array on line 5

Thanks you
__________________
I am 42% addicted to Counterstrike. What about you?

No more CS for me....
elpouletorange is offline
 



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 01:32.


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