View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-16-2022 , 09:29   Re: Counting substrings in string
Reply With Quote #2

If I understand correctly this is what you want..

PHP Code:
public Function()
{
    new 
szArg64 ], iCount;
    
formatexszArgcharsmaxszArg ), "Hey^nDude^nWelcome^nto^nAlliedmods" )
    while( 
containiszArg"^n" ) != )
    {
        
iCount++;
    }
    
client_print(idprint_chat,  "New lines counts %i"iCount )    

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline