Question
#3

Is a goto loop. Is normally not recommended.
Just change it to a foreach loop like:
PHP код:
foreach(new iPlayers)
{
     if(
TrackPMs[i] == targetid)
    {
                
format(strsizeof(str), "((PM from %s to %s: %s))"GetOOCName(playerid), GetOOCName(targetid), message);
                
SendClientMessage(iYELLOWstr);
                
PlayerPlaySound(i10850,0); 
    }

The code looks more simple and cleaner.
Hope I helped you
Reply


Messages In This Thread
Goto loop question - by Banditul18 - 17.08.2017, 13:56
Re: Question - by Vince - 17.08.2017, 14:02
Re: Question - by 10MIN - 17.08.2017, 14:05
Re: Question - by Banditul18 - 17.08.2017, 14:26
Re: Question - by Arbico - 17.08.2017, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)