AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   First letter (string inside of enum) (https://forums.alliedmods.net/showthread.php?t=236419)

W12 03-04-2014 15:39

First letter (string inside of enum)
 
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?

Arkshine 03-04-2014 16:58

Re: First letter (string inside of enum)
 
g_szStored[ i ][ Name ][0] ?

W12 03-05-2014 16:20

Re: First letter (string inside of enum)
 
Thank you, Arkshine.


All times are GMT -4. The time now is 05:56.

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