11.02.2018, 21:29
Hello, got a error while trying to put something from a gamemode with newer version of mysql into a script with mysql version R33
changed from:
changed to:
Error I got:
I did not exactly know where to change cache_get_value_name to what the function is for R33 mysql plugin anyone ?
I changed cache_get_value_name with cache_get_field_name
changed from:
PHP код:
cache_get_value_name(row, "JailedInfo", szResult);
sscanf(szResult, "p<|>e<ddddd>", PlayerInfo[extraid][pJailedInfo]);
cache_get_value_name(row, "JailedWeapons", szResult);
sscanf(szResult, "p<|>e<dddddddddddd>", PlayerInfo[extraid][pJailedWeapons]);
PHP код:
cache_get_field_name(row, "JailedInfo", szResult);
sscanf(szResult, "p<|>e<ddddd>", PlayerInfo[extraid][pJailedInfo]);
cache_get_field_name(row, "JailedWeapons", szResult);
sscanf(szResult, "p<|>e<dddddddddddd>", PlayerInfo[extraid][pJailedWeapons]);
Код:
./includes/mysql.pwn(602) : error 035: argument type mismatch (argument 3) ./includes/mysql.pwn(604) : error 035: argument type mismatch (argument 3)
I changed cache_get_value_name with cache_get_field_name