24.06.2010, 17:12
What do you mean?
The lenght is 24 yes or no? xD sry, im a newbie.
If I /kaufen write should actually refer to the house written file will be and as I have a loop have should the game text to change even as I the / kaufen command HausInfo[house] [Vergeben] = 1;
and my loop looks like from:
But is it still HausInfo.....[Vergeben] == 0
My english is very bad i hope u understand it xD
The lenght is 24 yes or no? xD sry, im a newbie.
Код:
enum hInfo { Float:eX, Float:eY, Float:eZ, Float:aX, Float:aY, Float:aZ, Preis, Besitzer[24], Vergeben, Miete, }; new HausInfo[MAX_HOUSES][hInfo];
and my loop looks like from:
Код:
if(HausInfo[i][Vergeben] == 1) { format(bString, 64, "Preis%d", i); HausInfo[i][Preis] = INI_ReadInt(bString); format(bString, 64, "Besitzer%d", i); INI_ReadString(HausInfo[i][Besitzer],bString,24); format(bString,sizeof(bString),"~g~.:Haus Informationen:.~n~~w~Mietkosten: %d ~y~~n~Besitzer: %s~n~~w~Tippe /mieten um ein Zimmer zu mieten ~b~",HausInfo[i][Preis],HausInfo[i][Besitzer]); GameTextForPlayer(playerid,bString,2500,3); } else { format(bString, 64, "Preis%d", i); HausInfo[i][Preis] = INI_ReadInt(bString); format(bString, 64, "Besitzer%d", i); INI_ReadString(HausInfo[i][Besitzer],bString,24); format(bString,sizeof(bString),"~g~.:Haus Informationen:.~n~~w~Haus Preis: %d ~y~~n~Besitzer: %s ~b~~n~~w~Tippe /kaufen um das Haus zu kaufen",HausInfo[i][Preis],HausInfo[i][Besitzer]); GameTextForPlayer(playerid,bString,2500,3); }
My english is very bad i hope u understand it xD