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

Hey guys... Can you guys help me with this warning? Please
This is the line that contains the warning:
Код:
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_value_name_int(0, "Can_Deposit"), PermissionStates, cache_get_value_name_int(0, "Can_Take"));
Line 394: amount = cache_get_value_name_int(i, "Amount");
Line 447: id = cache_get_value_name_int(i, "ID");
Line 450: BusinessData[id][BusinessX] = cache_get_value_name_float(i, "BusinessX");
Line 451: BusinessData[id][BusinessY] = cache_get_value_name_float(i, "BusinessY");
Line 452: BusinessData[id][BusinessZ] = cache_get_value_name_float(i, "BusinessZ");
Line 453: BusinessData[id][Closed] = cache_get_value_name_int(i, "Closed");
Line 454: BusinessData[id][Price] = cache_get_value_name_int(i, "Price");
Line 455: BusinessData[id][SalePrice] = cache_get_value_name_int(i, "SalePrice");
Line 456: BusinessData[id][Earning] = cache_get_value_name_int(i, "Earning");
Line 457: BusinessData[id][Money] = cache_get_value_name_int(i, "Money");
Line 458: BusinessData[id][Type] = cache_get_value_name_int(i, "Type");
Line 459: BusinessData[id][LastVisited] = cache_get_value_name_int(i, "LastVisited");
Line 495: amount = cache_get_value_name_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_value_name_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") ]);
And this is a warning message
Код:
SAMPSERVER\Roleplay\filterscripts\business.pwn(361) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(394) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(447) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(450) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(451) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(452) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(453) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(454) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(455) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(456) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(457) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(458) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(459) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(495) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(497) : warning 202: number of arguments does not match definition
SAMPSERVER\Roleplay\filterscripts\business.pwn(948) : warning 202: number of arguments does not match definition
Thank you.
Reply
#2

Код:
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
Reply
#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
#4

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
Yeah.. it's Yet Another Business system script, i wanna re-compile.. but my gamemodes use mysql R41. so.. i wanna change it to R41
Reply
#5

Quote:
Originally Posted by AlfaSufaIndo
Посмотреть сообщение
Yeah.. it's Yet Another Business system script, i wanna re-compile.. but my gamemodes use mysql R41. so.. i wanna change it to R41
https://sampforum.blast.hk/showthread.php?tid=616103 - Check this
Reply
#6

Quote:
Originally Posted by UFF
Посмотреть сообщение
Thank you very much guys.. the problem is solved.
Reply
#7

Respect +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)