"i" question
#1

I am looking at Vortex Roleplay 2 as another resource on how to script. I have noticed the author of the script uses "i" a lot. Is this a custom variable or is it built into SAMP? If it is built into SAMP is there reading material on it I can see? Here is a snipit of code from Vortex Roleplay 2:

Код:
stock substr_count(substring[], string[]) {
	new
		tmpcount;

	for( new i = 0; i < strlen(string); i++)
	{
        if(strfind(string[i], substring, true))
        {
			tmpcount++;
        }
	}
	return tmpcount;
}
Reply


Messages In This Thread
"i" question - by BittleRyan - 28.08.2012, 02:20
Re: "i" question - by Shockey HD - 28.08.2012, 02:21
Re: "i" question - by SuperViper - 28.08.2012, 02:47
Re: "i" question - by Lordzy - 28.08.2012, 02:49
Re: "i" question - by MP2 - 28.08.2012, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)