SA-MP Forums Archive
Warning Something doesn't match - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning Something doesn't match (/showthread.php?tid=658767)



Warning Something doesn't match - IndependentGaming - 11.09.2018

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); 



Re: Warning Something doesn't match - Undef1ned - 11.09.2018

Read the wiki.

https://sampwiki.blast.hk/wiki/MySQL/R33..._field_content


Re: Warning Something doesn't match - IndependentGaming - 11.09.2018

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


Re: Warning Something doesn't match - Undef1ned - 11.09.2018

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); 



Re: Warning Something doesn't match - IndependentGaming - 11.09.2018

I still don't get it :O


Re: Warning Something doesn't match - Burridge - 11.09.2018

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


Re: Warning Something doesn't match - IndependentGaming - 11.09.2018

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


Re: Warning Something doesn't match - Undef1ned - 11.09.2018

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