error 035: argument type mismatch (argument 2)
#1

Hello, maybe you can tell me what's wrong with this code? Because I can't find a mistake

Код HTML:
new String[30];

for(new i = 0; i < MAX_INVENTORY_SLOTS; i ++)
{
	format(String, sizeof(String), "InventoryItemID_%d", i);
	cache_get_value_int(0, String, InventorySystem[playerid][i][ItemID]);

	format(String, sizeof(String), "InventoryItemAmmount_%d", i);
	cache_get_value_int(0, String, InventorySystem[playerid][i][ItemAmmount]);
}
2 same warnings on these lines:

cache_get_value_int(0, String, InventorySystem[playerid][i][ItemID]);
cache_get_value_int(0, String, InventorySystem[playerid][i][ItemAmmount]);
Reply
#2

It depends, which mysql version you are using.

Maybe update to the newest, then this should be correct
Reply
#3

It's R41-4.

But I've changed to cache_get_value_name_int and now is ok.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)