SSI ReadString Problem
#1

Hey Guys,
i working at a selfmade script.
I have posted that prob in the German community too,
but there nobody can give me a answer, i hope here.

I Load my House,
All are going, but the Owner not.
He didnt Read the String.
But Why? I think i have made all perfect, but he give me nothing back.

Here my Script.

Код:
stock LoadHouseInfo()
{
	if(INI_Open("/Houses/haus.cfg"))
	{
	  new loader[128];
	  for(new i=0;i<MAX_H;i++)
	  {
	    format(loader,sizeof(loader),"Besitzer_%s",i);
	    HouseInfo[i][Besitzer] = INI_ReadString(HouseInfo[i][Besitzer],loader,32);
			printf("Besitzer_%d : %s",i,HouseInfo[i][Besitzer]);
	    format(loader,sizeof(loader),"EnterX_%d",i);
			HouseInfo[i][EnterX] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"EnterY_%d",i);
			HouseInfo[i][EnterY] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"EnterZ_%d",i);
			HouseInfo[i][EnterZ] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"ExitX_%d",i);
			HouseInfo[i][ExitX] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"ExitY_%d",i);
			HouseInfo[i][ExitY] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"ExitZ_%d",i);
			HouseInfo[i][ExitZ] = INI_ReadFloat(loader);
			format(loader,sizeof(loader),"Locked_%d",i);
			HouseInfo[i][Locked] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"Preis_%d",i);
			HouseInfo[i][Preis] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"Level_%d",i);
			HouseInfo[i][Level] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"Interior_%d",i);
			HouseInfo[i][Interior] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"VirtualWorld_%d",i);
			HouseInfo[i][VirtualWorld] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"Exists_%d",i);
			HouseInfo[i][Exists] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"Owned_%d",i);
			HouseInfo[i][Owned] = INI_ReadInt(loader);
			format(loader,sizeof(loader),"PickupID_%d",i);
			HouseInfo[i][PickupID] = INI_ReadInt(loader);
			if(HouseInfo[i][Exists])
			{
			  if(HouseInfo[i][Owned] == 0)
			  {
				  HouseInfo[i][PickupID] = CreateStreamPickup(1273, 1, HouseInfo[i][EnterX],HouseInfo[i][EnterY],HouseInfo[i][EnterZ],PICKUP_RANGE);
				  CreateMapIcon(31,0,HouseInfo[i][EnterX],HouseInfo[i][EnterY],HouseInfo[i][EnterZ]);
				}
				else
				{
  				HouseInfo[i][PickupID] = CreateStreamPickup(1239, 1, HouseInfo[i][EnterX],HouseInfo[i][EnterY],HouseInfo[i][EnterZ],PICKUP_RANGE);
				  CreateMapIcon(32,0,HouseInfo[i][EnterX],HouseInfo[i][EnterY],HouseInfo[i][EnterZ]);
				}
			  Created_Houses++;
			}
		}
		INI_Close();
	}
	return 1;
}
But the printf give me nothing back-.-
Where is the mistake?
Reply
#2

Nobody know?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)