warning 202: number of arguments does not match definition
cache_get_field_content(i, "Pass", GateInfo[i][gPass], MainPipeline, 23);
cache_get_field_content Description: Retrieves a value from the result set as a string. Parameters: (row, const field_name[], destination[], connectionHandle = 1, max_len = sizeof(destination)) - row ----> The row's index (starts at '0'). - const field_name[] ----> The field's name. - destination[] ----> The string to store the data into. - connectionHandle ----> The connection handle this will be processed on (optional). - max_len ----> The size of the destination string (optional). Return Values: This function does not return any specific values. Important Note: You have to provide the size (max_len) by yourself if you use an enum-array as destination.
new dest[128];
cache_get_field_content(0, "name", dest);
printf("The value in the field 'name' is '%s'.", dest);
You're better off using the latest version of the plugin (R41-4): https://github.com/pBlueG/SA-MP-MySQL/releases
The cache_get_field_content function was removed in R40 which was released about 2 years ago. It was replaced by cache_get_value, cache_get_value_int, and cache_get_value_float. There's an example script on the repo too: https://github.com/pBlueG/SA-MP-MySQ...stem-cache.pwn |
new rows, fields; cache_get_data(rows, fields, mysql);
if(rows)
{
cache_get_field_content(0, "Password", pInfo[playerid][Password], mysql, 129);
}
else
{
//
}