Expected ; but found ]
#1

Код:
case DIALOG_LOOT:
		{
		    if(listitem == 0 || response == 0 || PlayerInfo[playerid][pAreaType] != AREA_TYPE_LOOT) return 0;
		    
		    new areaid = PlayerInfo[playerid][pArea];
		    new item_id, item_name[64];
		    
			strdel(inputtext, 0, 3);
			
			for(new i; i < MAX_ITEMS_PER_LOOT; i++)
			{
			    item_id = LootInfo[areaid][loot_item_id][i];
			    if(LootInfo[areaid][loot_item_type][i] == ITEM_SETTING_WEAPON) GetWeaponName(item_id, item_name, sizeof(item_name));//item_name =
				else strmid(item_name, ItemInfo[item_id][ItemName], 0, strlen(ItemInfo[item_id][ItemName])); //format(item_name, sizeof(item_name), "%s", ItemInfo[item_id][ItemName]);
			    //format(str1, sizeof(str1), "inputtext: %s (%d) | item_name: %s (%d)", inputtext, strlen(inputtext), item_name, strlen(item_name));
			    //SendClientMessage(playerid, COLOR_RED, str1);

			    if(strcmp(item_name, inputtext) == 0)
			    {
					if(Inventory_GiveItem(playerid, item_id, LootInfo[areaid][loot_item_type][i]) == 0) return 0;
					
					DestroyDynamicObject(LootInfo[areaid][loot_item][i]);
					LootInfo[areaid][loot_item][i] = -1;
					
		        	LootInfo[areaid][loot_item_id][i] = 0;
					LootInfo[areaid][loot_item_type][i] = ITEM_SETTING_UNDEFINED;
					
					
					Loot_ShowPlayerLoot(playerid);
					
					break;
				}
			}
		}
Reply
#2

line ?
Reply
#3

item_id = aka line 1781
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)