sscanf warning: Format specifier does not match parameter count.
#1

i m founded this warning in my server_logs
"sscanf warning: Format specifier does not match parameter count."

the code is:
PHP код:
printf("sscanf 1");
sscanf(t_line"p<|>i{s[21]s[16]s[128]}d{ddddddddd}s[16]{s[16]dddd}"PlayerInfo[extraid][pRegID], admlvllastIP); 
Reply
#2

Print t_line and show us

Edit :
Work perfectly for me :
PHP код:
#pragma compat 1
#include "a_samp"
#include "sscanf2"
main()
{
    new
        
params[] = "2|text|text|text|2|5|5|5|5|5|5|5|5|5|yo|text|5|5|5|5";
        
    new
        
value1,
        
value2,
        
str[16];
    
    
sscanf(params"p<|>i{s[21]s[16]s[128]}d{ddddddddd}s[16]{s[16]dddd}"value1value2str);
    
printf("%d %d %s"value1value2str); // 2 2 yo

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)