Raised This Month: $ Target: $400
 0% 

First letter (string inside of enum)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
W12
Member
Join Date: Sep 2013
Old 03-04-2014 , 15:39   First letter (string inside of enum)
Reply With Quote #1

I give you this exemple:

PHP Code:
enum _Stored
{
    
Name32 ],
    
Authid32 ],
    
Number
}

new 
g_szStoredMAX ][ Stored ]; 
PHP Code:
get_user_nameidg_szStored][ Name ], charsmaxg_szStored[ ][ Name ] ) ); 
How can I get the first letter from name of player with index "id" ?

If I have this:

PHP Code:
new szName32 ];

get_user_nameidszName charsmaxszName ) ); 
I can get the first letter like so: szName[ 0 ], but how can I get the first letter in the first exemple below?

Last edited by W12; 03-04-2014 at 15:41.
W12 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-04-2014 , 16:58   Re: First letter (string inside of enum)
Reply With Quote #2

g_szStored[ i ][ Name ][0] ?
__________________

Last edited by Arkshine; 03-04-2014 at 16:58.
Arkshine is offline
W12
Member
Join Date: Sep 2013
Old 03-05-2014 , 16:20   Re: First letter (string inside of enum)
Reply With Quote #3

Thank you, Arkshine.
W12 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 05:56.


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