22.06.2010, 19:03
(Sry for bad English! )
Hi all,
i have problem with my House System.
It is the only text displayed by the game Haus1, rest of the houses were not
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; }