View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 12-06-2009 , 20:03   Re: Loop Through Characters in String
Reply With Quote #3

A more efficient way:
PHP Code:
new n=0;
while (
mystring[n] != '\0') {
    
     
// Do your stuff here...

    
n++;

__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline