29.03.2014, 11:59
Hi guys, i have problem with looping.
here is code:
and i have file Ass_0.ini
and Ass_1.ini
and when i come to x,y,z of Ass_0 it says works!
and when i come to x,y,z of Ass_1 it dont work just print Not Near
here is code:
Код:
for(new i = 0; i < sizeof(PI); i++) { if(IsPlayerInRangeOfPoint(playerid, 5.0, PI[i][pPozx], PI[i][pPozy], PI[i][pPozz])) { SCM(playerid,-1,"Works!"); return 1; } else return SCM(playerid,-1,"Not near"); }
and Ass_1.ini
and when i come to x,y,z of Ass_0 it says works!
and when i come to x,y,z of Ass_1 it dont work just print Not Near