sscanf & mysql - argument type mismatch
#1

what's wrong with this code?
Код:
cache_get_field_content_float(0, "index_9", index_result); format(index_var, sizeof(index_var), index_result);
sscanf(index_var, "p<|>ffffff", PlayerInfo[playerid][Index_9][0], PlayerInfo[playerid][Index_9][1], PlayerInfo[playerid][Index_9][2], PlayerInfo[playerid][Index_9][3], PlayerInfo[playerid][Index_9][4], PlayerInfo[playerid][Index_9][5]);
I get this error
Код:
error 035: argument type mismatch (argument 3)
The line containing the error is:
Код:
cache_get_field_content_float(0, "index_9", index_result); format(index_var, sizeof(index_var), index_result);
Reply
#2

What type is your variable "index_result"(string, integer, float or something else)?
Reply
#3

Solved.
I changed
Код:
cache_get_field_content_float(0, "index_9", index_result);
with
Код:
cache_get_field_content(0, "index_9", index_result);
Quote:
Originally Posted by Kraeror
Посмотреть сообщение
What type is your variable "index_result"(string, integer, float or something else)?
Thank you for your interest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)