29.03.2013, 07:06
Hello
I've created a drug locker. Everything displays fine if "WEED", "COCAINE" and "CRACK" are 0.
But if Cocaine or Crack > 0 the items above dont show up. Can anybody help me?
(It's a dialog btw)
I've created a drug locker. Everything displays fine if "WEED", "COCAINE" and "CRACK" are 0.
But if Cocaine or Crack > 0 the items above dont show up. Can anybody help me?
(It's a dialog btw)
Код:
case DIALOG_DRUGLOCKER: { new info[256]; new path[256]; format(path, 68, "/Houses/%i.ini", GetPVarInt(playerid,"InHouse")); if(dini_Int(path,"Weed")>=0) { format(info, sizeof(info), "Weed: %ig\n", dini_Int(path,"Weed")); } if(dini_Int(path,"Crack")>=0) { format(info, sizeof(info), "Crack: %ig\n", dini_Int(path,"Crack")); } if(dini_Int(path,"Cocaine")>=0) { format(info, sizeof(info), "Cocaine: %ig\n", dini_Int(path,"Cocaine")); } ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Drug - Locker", info, "Select", "Cancel"); }