Warning 202: number of arguments does not match definition
#3

https://sampwiki.blast.hk/wiki/MySQL/R40 -- SAMP Wiki.

cache functions stores values differently. The last parameter is Destination, means the variable you want to store the value. a good example from your code would be,
Код:
  cache_get_field_content_int(i, "Amount",amount); //See the red one is variable.
instead of
Код:
 amount = cache_get_field_content_int(i, "Amount");

Quote:
Originally Posted by UFF
Посмотреть сообщение
Код:
Line 361: format(string, sizeof(string), "Permission Owner:\t%s\nCan Deposit Money:\t%s\nCan Take Money:\t%s\nRemove", name, PermissionStates[ cache_get_field_content_int(0, "Can_Deposit") ], PermissionStates[ cache_get_field_content_int(0, "Can_Take") ]);


Line 394: amount = cache_get_field_content_int(i, "Amount");

//-------------------------- Business Load
  			id = cache_get_field_content_int(i, "ID");
	    	cache_get_field_content(i, "Name", BusinessData[id][Name], .max_len = MAX_BUSINESS_NAME);
		    cache_get_field_content(i, "Owner", BusinessData[id][Owner], .max_len = MAX_PLAYER_NAME);
		    BusinessData[id][BusinessX] = cache_get_field_content_float(i, "BusinessX");
		    BusinessData[id][BusinessY] = cache_get_field_content_float(i, "BusinessY");
		    BusinessData[id][BusinessZ] = cache_get_field_content_float(i, "BusinessZ");
		    BusinessData[id][Closed] = cache_get_field_content_int(i, "Closed");
		    BusinessData[id][Price] = cache_get_field_content_int(i, "Price");
		    BusinessData[id][SalePrice] = cache_get_field_content_int(i, "SalePrice");
		    BusinessData[id][Earning] = cache_get_field_content_int(i, "Earning");
		    BusinessData[id][Money] = cache_get_field_content_int(i, "Money");
		    BusinessData[id][Type] = cache_get_field_content_int(i, "Type");
		    BusinessData[id][LastVisited] = cache_get_field_content_int(i, "LastVisited");	
//------------------------------------ 

Line 495: amount = cache_get_field_content_int(i, "Amount");
Line 497: format(string, sizeof(string), "You sold a business to %s for $%s. (Transaction ID: #%d)", new_owner, convertNumber(amount), cache_get_field_content_int(i, "ID"));
Line 948: format(string, sizeof(string), "%s%d\t%s\t%s\t%s\n", string, cache_get_value_name_int(i, "ID"), name, PermissionStates[ cache_get_value_name_int(i, "Can_Deposit") ], PermissionStates[ cache_get_value_name_int(i, "Can_Take") ]);
Use mysql r39-6.
I think it's Yet Another Business system script
That was a poor advice to tell someone to downgrade their plugin. If you dont know how to solve those warnings, dont post.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)