27.03.2015, 04:12
So why this doesn't work?
Код:
obj[0] = CreateDynamicObject(id, X, Y, Z, 0, 0, 0); obj[1] = CreateDynamicObject(id, X, Y, Z, 0, 0, 0); obj[2] = CreateDynamicObject(id, X, Y, Z, 0, 0, 0); for(new i = 0; i < sizeof(obj); i++) { if(IsPlayerNearObject(playerid, obj[i], 2.0)) { ShowTDActivity(playerid, "Something"); activityTimer[playerid] = SetTimerEx("Something", 1000, true, "i", playerid); } }