Mode => Unknown
#1

(Sry for bad English )
My problem is the following,
under OnGameModeInit
I have a load line ...
Код:
public OnGameModeInit()
{
  .....
  Laden();
  .....
    return 1;
}
Код:
stock Laden()
{
  //Pickups & GameTexte
  for(new i=0;i<MAX_HOUSES;i++)
  {
    new string5[256];
    if(OpenINI("Haus.cfg"))
    {
      new house;
      for(house = 0; house <= MAX_HOUSES; house++)
      {
        format(string5, 64, "eX%d", house);
        HausInfo[house][eX] = ReadFloatKey(string5);
        format(string5, 64, "eY%d", house);
        HausInfo[house][eY] = ReadFloatKey(string5);
        format(string5, 64, "eZ%d", house);
        HausInfo[house][eZ] = ReadFloatKey(string5);
        AddStaticPickup(1273, 2, HausInfo[house][eX],HausInfo[house][eY],HausInfo[house][eZ]);
      }
    }
    CloseINI();
  }
  return 1;
}
If i put @ OnGameModeInit
Код:
Laden();
is Mode Name = Unknown.
In the stock I see no errors it causes.
PS, do not be surprised because of silly string and the name, number
I change course, if everything works.
I hope anywhere can help me
Thank You
Reply


Messages In This Thread
Mode => Unknown - by wofka13 - 17.06.2010, 17:38
Re: Mode => Unknown - by Luka P. - 17.06.2010, 19:20
Re: Mode => Unknown - by MadeMan - 17.06.2010, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)