MAX_HOUSES problem
#1

(Sry for bad English! )
Hi all,
i have problem with my House System.
Код:
     //another
     if(OpenINI("Haus.cfg"))
 	{
 	  for(new i=0;i<MAX_HOUSES;i++)
 		{
			if(IsPlayerInRangeOfPoint(i,5.0,HausInfo[i][eX],HausInfo[i][eY],HausInfo[i][eZ]))
			{
		 		format(bString, 64, "Vergeben%d", i);
			  	HausInfo[i][Vergeben] = ReadIntKey(bString);
				if(HausInfo[i][Vergeben] == 1)
				{
    			format(bString, 64, "Preis%d", i);
				 	HausInfo[i][Preis] = ReadIntKey(bString);
				 	format(bString, 64, "Besitzer%s", i);
				  	HausInfo[i][Besitzer] = ReadIntKey(bString);
					format(bString,sizeof(bString),"~g~Haus Informationen~n~~w~Geld: %d ~y~Besitzer: %s ~b~",HausInfo[i][Preis],HausInfo[i][Besitzer]);
					GameTextForPlayer(i,bString,2500,3);
				}
  			else
				{
    			format(bString, 64, "Preis%d", i);
				 	HausInfo[i][Preis] = ReadIntKey(bString);
		 		 	format(bString,sizeof(bString),"~g~Haus Informationen~n~~w~Preis: %d ~y~Besitzer: Staat ~b~",HausInfo[i][Preis]);
					GameTextForPlayer(i,bString,2500,3);
  			}
			}
		}
		CloseINI();
	}
	return 1;
}
It is the only text displayed by the game Haus1, rest of the houses were not
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,HausInfo[i][eX],HausInfo[i][eY],HausInfo[i][eZ]))
pawn Код:
GameTextForPlayer(playerid,bString,2500,3);
Reply
#3

Thankkkkkkkkkkkkkk You very much,
in the German forum, no one could help me since few weeks and here after hours, simply super
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)