[HowTo?]Count your "produced" objects
#2

Try something like

pawn Код:
new objects = 0;
// replace all CreateObject with CreateObjectEx
stock CreateObjectEx(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
{
  CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
  objects++;
  return 1;
}

public OnGameModeInit()
{
  printf("Total objects: %d", objects);
  return 0;
}
Reply


Messages In This Thread
[HowTo?]Count your "produced" objects - by DeathOnaStick - 13.11.2009, 18:36
Re: [HowTo?]Count your "produced" objects - by dice7 - 13.11.2009, 20:20
Re: [HowTo?]Count your "produced" objects - by DeathOnaStick - 13.11.2009, 20:26
Re: [HowTo?]Count your "produced" objects - by chris23 - 02.12.2009, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)