Warning Something doesn't match
#1

Hello, I'm trying to fix this warning but no mater what I try keep getting the same warning..

Код:
warning 202: number of arguments does not match definition

PHP код:
        cache_get_field_content(i"Pass"GateInfo[i][gPass], MainPipeline23); 
Reply
#2

Read the wiki.

https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content
Reply
#3

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
Thats not much info where do I look ?
Reply
#4

Wiki:

Код HTML:
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.
PHP код:
new dest[128];
cache_get_field_content(0"name"dest);
printf("The value in the field 'name' is '%s'."dest); 
Reply
#5

I still don't get it :O
Reply
#6

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
Reply
#7

Quote:
Originally Posted by Burridge
Посмотреть сообщение
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
I will update my mysql plugin later first I want to fix this warning to test this sys so I would be nice if one of you guys could help me with this
Reply
#8

Then, guide yourself from this.

PHP код:
new rowsfieldscache_get_data(rowsfieldsmysql); 
if(
rows

    
cache_get_field_content(0"Password"pInfo[playerid][Password], mysql129);

else 

    
//

EDIT: shows the complete code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)