Quote:
Originally Posted by --kml--
Some question to ask
1.) how to make my own include? is it for shortening code?
like making a stock inside it .
2) Well , i have read a tutorial about bitsum operator so do i realy need to make bitsum_is_user_alive ?
3) So , How to check if a player is lagging or loosing fps?
4) how to spawn a sprite like the HP sprite ( is it a sprite?)
means by if i move the sprite still is sticking it to the screen and not lagging .
i will ask more if i am not sure about something
and thx if u help
  
|
1) Put stuff in a <filename>.inc file and then put "#include <filename>" (with angle brackets this time lol).
2) You obviously didn't understand that tutorial. Use something like this:
PHP Code:
new bitsum_is_alive
// Set whether or not they are alive:
if( is_user_alive(id) )
{
bitsum_is_alive |= (1<<id)
}
else
{
bitsum_is_alive &= ~(1<<id)
}
// Then use the following to check and see if they are alive:
if (bistum_is_alive & (1<<id))
{
// User is alive.
}
3) Why?
__________________