String vs loop
#8

Код:
new Items = 0;
for(new i = 0; i < 10; i++)
{
     if(!isnull(Statistics[playerid][Item][i]))
     {
           Items++;
           continue;
     }
     else
     {
            strmid(Statistics[playerid][Item][i], inputtext, 0, strlen(inputtext));
	    Items = 0;
	    break;
     }
}
That's how your method should be done.
Reply


Messages In This Thread
String vs loop - by cdoubleoper - 02.05.2016, 15:25
Re: String vs loop - by NaS - 02.05.2016, 15:48
Re: String vs loop - by cdoubleoper - 02.05.2016, 16:11
Re: String vs loop - by Konstantinos - 02.05.2016, 16:30
Re: String vs loop - by PrO.GameR - 02.05.2016, 16:30
Re: String vs loop - by cdoubleoper - 02.05.2016, 21:08
Re: String vs loop - by Konstantinos - 02.05.2016, 21:17
Re: String vs loop - by -CaRRoT - 02.05.2016, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)