22.06.2010, 21:04
(Sry for bad English )
I have problem with compiling,
it is the error "array sizes Thurs comes not match, or destination array is too small"
I've been trying new bString to 128 and 512 set but it does not works
Thx
I have problem with compiling,
it is the error "array sizes Thurs comes not match, or destination array is too small"
Код:
public opfa(playerid) { new bString[256]; if(OpenINI("Haus.cfg")) { for(new i=0;i<MAX_HOUSES;i++) { if(IsPlayerInRangeOfPoint(playerid,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] = ReadStringKey(bString); format(bString,sizeof(bString),"~g~Haus Informationen~n~~w~\nMietkosten: %d ~y~\nBesitzer: %s ~b~",HausInfo[i][Preis],HausInfo[i][Besitzer]); GameTextForPlayer(playerid,bString,2500,3); } else { format(bString, 64, "Preis%d", i); HausInfo[i][Preis] = ReadIntKey(bString); format(bString,sizeof(bString),"~g~Haus Informationen~n~~w~\nHaus PreiЯ: %d ~y~\nBesitzer: Staat ~b~",HausInfo[i][Preis]); GameTextForPlayer(playerid,bString,2500,3); } } } CloseINI(); } return 1; }
Thx