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") ]);
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
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") ]);
cache_get_field_content_int(i, "Amount",amount); //See the red one is variable.
amount = cache_get_field_content_int(i, "Amount");
Код:
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") ]); I think it's Yet Another Business system script |
Код:
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") ]); 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
|
https://sampforum.blast.hk/showthread.php?tid=616103 - Check this
|