14.12.2012, 12:39
Hello Everyone,
I am trying to make a stock function with a string parameter , in which i can pass a RPName and it will return me a First initial of the first name attached with the last name's first initial but im not getting a perfect idea to code it. The stock will do the following function with a String.
Examples with some RP names :
Example of the code:
Thanks
Ballu Miaa
I am trying to make a stock function with a string parameter , in which i can pass a RPName and it will return me a First initial of the first name attached with the last name's first initial but im not getting a perfect idea to code it. The stock will do the following function with a String.
Examples with some RP names :
- Jonas_Renfold , The function will return : JR
- Ballu_Miaa , The function will return : BM
- Alex_Cole , The function will return : AC
Example of the code:
pawn Код:
stock GetNameInitials(name[])
{
//Function Body
return initials; // string
}
Ballu Miaa