siema
mógłby mi ktoś poprawić ten kod ?
public FunkcjaSklepu(id,menu,item) { if(item==MENU_EXIT) { menu_destroy(menu) } new data[6], iName[64] new access, callback new punkty[33]; menu_item_getinfo(menu, item, access, data,5, iName, 63, callback) new key = str_to_num(data) switch(key) { case 1 : { if(punkty[33] >= 1000); { punkty[id] -= 1000; set_user_health(id, 255) ColorChat(id, GREEN, "%s^x01 Zakupiles^x03 =255HP^x01.", prefix); } } } }
podczas kompilacji błąd pokazuje w tej linii:
if(punkty[33] >= 1000);
Dodam też, że gdy nie ma warunku wszystko ładnie się kompiluje.
@edit.
błędy:
sklep.sma(63) : error 032: array index out of bounds (variable "punkty") sklep.sma(63) : error 036: empty statement