SA-MP Forums Archive
Error in sscanf - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error in sscanf (/showthread.php?tid=249390)



Error in sscanf - Red_Devils - 18.04.2011

PHP код:
CMD:inv(playerid,params[])
{
    new 
string[256],listitems[512],idinv;
    for(new 
ii<MAX_PLAYER_INVENTARi++)
    {
        
idinv++;
        
format(stringsizeof(string),"[%d]Slot - %d\n",i+1,PlayerInentar[playerid][i+1]);
        
strins(listitemsstringstrlen(listitems), strlen(string));
    }
    
ShowPlayerDialog(playerid,DIALOG_INVENTAR,DIALOG_STYLE_LIST,""#NAME_MODE"Stats",listitems,"Ок","Выбросить");
    
return 1;

Error: sscanf warning: Format specifier does not match parameter count
Help me plz!


Re: Error in sscanf - Vince - 18.04.2011

So ehm, where do you use sscanf in that command? xD


Re: Error in sscanf - Red_Devils - 18.04.2011

What to do?
Or how to bypass?


Re: Error in sscanf - Alby Fire - 18.04.2011

As Vince just said, in the script you have posted there's not any sscanf line... so how do you expect us to fix it?