Is player in range of an object
#7

Quote:
Originally Posted by Pooh7
Посмотреть сообщение
pawn Код:
for(new i = 0; i < sizeof(atm); i++)
{
    new Float:Pos[3];
}
You shouldn't create variables inside of a loop, in this instance it won't do much harm, but it's good general practice. Under harsh circumstances, allocating memory per loop causes speed reduction
Reply


Messages In This Thread
Is player in range of an object - by The Woody - 11.04.2011, 21:51
Re: Is player in range of an object - by Voldemort - 11.04.2011, 22:08
Re: Is player in range of an object - by The Woody - 11.04.2011, 22:10
Re: Is player in range of an object - by Joe Staff - 11.04.2011, 22:19
Re: Is player in range of an object - by Pooh7 - 11.04.2011, 22:22
Re: Is player in range of an object - by The Woody - 11.04.2011, 22:26
Re: Is player in range of an object - by Joe Staff - 11.04.2011, 22:33
Re: Is player in range of an object - by The Woody - 12.04.2011, 11:21
Re: Is player in range of an object - by CyNiC - 12.04.2011, 12:59
Re: Is player in range of an object - by The Woody - 12.04.2011, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)