17.08.2017, 14:05
Is a goto loop. Is normally not recommended.
Just change it to a foreach loop like:
The code looks more simple and cleaner.
Hope I helped you
Just change it to a foreach loop like:
PHP код:
foreach(new i: Players)
{
if(TrackPMs[i] == targetid)
{
format(str, sizeof(str), "((PM from %s to %s: %s))", GetOOCName(playerid), GetOOCName(targetid), message);
SendClientMessage(i, YELLOW, str);
PlayerPlaySound(i, 1085, 0, 0 ,0);
}
}
Hope I helped you
![Smiley](images/smilies/smile.png)