[Ошибка] sscanf warning: Format specifier does not match parameter count.
#1

Как исправить

PHP код:
[18:57:09] *** Streamer Plugin: Include file version (0x26105does not match plugin version (0x26104) (script needs to be recompiled with the latest include file)
[
18:57:09]  
[
18:57:09]  
[
18:57:09]  
[
18:57:09]  ======================================= 
[
18:57:09]  |                                     | 
[
18:57:09]  |        YSI version 1.06.0002        
[
18:57:09]  |        By Alex "******" Cole        
[
18:57:09]  |                                     | 
[
18:57:09]  ======================================= 
[
18:57:09]  
[
18:57:09] [plugin.sql][warningNatives::sql_debugSwitching the log levels to (03)...
[
18:57:09]  [Загрузка мэрии]: Было загружено потрачено 3 (ms)
[
18:57:0923 --- 1034
[18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:09sscanf warningString buffer overflow.
[
18:57:10491 houses loaded
[18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningString buffer overflow.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10sscanf warningFormat specifier does not match parameter count.
[
18:57:10Number of vehicle models116
[18:57:10]  
[
18:57:10]  ========================================== 
[
18:57:10]  |                                        | 
[
18:57:10]  |  new version (v3.09.0684of YSI is  
[
18:57:10]  |            available from:             | 
[
18:57:10]  |                                        | 
[
18:57:10]  |     www.y-less.com/YSI/YSI_1.0.zip     
[
18:57:10]  |                                        | 
[
18:57:10]  | Changelog:                             | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   3.00.0000:                           | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   YSI 3.0 released!  Now includes the  
[
18:57:10]  | "y_text" library for better messages,  | 
[
18:57:10]  | and a reworked "y_classes" library.    | 
[
18:57:10]  | Largely documented here                
[
18:57:10]  | "http://forum.sa-mp.com/showthread.php | 
[18:57:10]  | ?t=321092"
.                            | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   3.01.0002:                           | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   Small fixes to "y_text" and          | 
[
18:57:10]  | "y_classes".                           | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   3.09.0684:                           | 
[
18:57:10]  |                                        | 
[
18:57:10]  |   Reverted to old download location.   | 
[
18:57:10]  | Improved (and fixedversion checks;   | 
[
18:57:10]  | added y_bitmapy_areasy_races,      | 
[
18:57:10]  | y_zonenamesbetter documentation;     | 
[
18:57:10]  | MANY other bug fixes see the github  
[
18:57:10]  | repository for more details:           | 
[
18:57:10]  |                                        | 
[
18:57:10]  ========================================== 
[
18:57:10]  
[
18:57:14] --- Server Shutting Down
PHP код:
    new Result:hints sql_query(zConn"SELECT * FROM `hints`"QUERY_CACHED);
    if(
sql_num_rows(hints) != HINTS_COUNT) print("Hints count difference");
    else
    {
        for(new 
isql_num_rows(hints); i++)
        {
            
sql_fetch_row(hints,"|",zRes);
            
sql_next_row(hints);
            
sscanf(zRes,"p<|>e<iffffffffis[51]>",gHints[i]);
            
gHintStoreArea[i] = CreateDynamicSphere(gHintStore[i][0],gHintStore[i][1],gHintStore[i][2],2.0);
            
gHintSafeArea[i] = CreateDynamicSphere(gHintSafe[i][0],gHintSafe[i][1],gHintSafe[i][2],2.0);
            
gHintFreezArea[i] = CreateDynamicSphere(gHintFreez[i][0],gHintFreez[i][1],gHintFreez[i][2],2.0);
            if(
HINTS_COUNT)
            {
                for(new 
k;k<9;k++) CreateDynamicObject(gHintGunID[k],gHintGun[i][k][0],gHintGun[i][k][1],gHintGun[i][k][2],gHintGun[i][k][3],gHintGun[i][k][4],gHintGun[i][k][5],i+500);
            }
        }
        
sql_free_result(hints);
    } 
PHP код:
    new Result:forders sql_query(zConn"SELECT * FROM `fuelorders` ORDER BY `id`"QUERY_CACHED);
     
fuelOrders sql_num_rows(forders);
     
zFuelUpdate();
     
sql_free_result(forders);
    new 
Result:houses sql_query(zConn"SELECT * FROM `houses` ORDER BY `id`"QUERY_CACHED);
     if(
sql_num_rows(houses) >= MAX_HOUSE_COUNT) print("Кол-во домов в базе больше максимального");
    else if(!
sql_num_rows(houses)) print("Домов в базе не найдено");
    else
    {
        
gHouseCount sql_num_rows(houses);
        
SetObjectMaterialText(meria[0], "Дома: 0"0,OBJECT_MATERIAL_SIZE_256x256,"Arial"5010xFFFFFFFF0OBJECT_MATERIAL_TEXT_ALIGN_LEFT);
        for(new 
i;gHouseCount;i++)
        {
            
sql_fetch_row(houses,"|",zRes);
            
sql_next_row(houses);
            
sscanf(zRes,"p<|>iiiiia<i>[5]a<i>[9]a<i>[4]iiiiiffffffffis[24]a<i>[3]s[24]s[24]s[24]",gHouses[i][houseID],gHouses[i][houseClass],gHouses[i][houseDays],gHouses[i][housePrice],gHouses[i][houseHint],gHouses[i][houseImprove],gHouses[i][houseGun],gHouses[i][houseSkin],gHouses[i][houseSafeCode],gHouses[i][houseSafeMoney],gHouses[i][houseDrugs],gHouses[i][houseProducts],gHouses[i][houseClose],
            
gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ],gHouses[i][houseR], gHouses[i][houseParkX],gHouses[i][houseParkY],gHouses[i][houseParkZ],gHouses[i][houseParkR],gHouses[i][houseOwnerID],gHouses[i][houseOwner],gHouses[i][houseHabitID],gHouseHabits[i][0],gHouseHabits[i][1],gHouseHabits[i][2]);
            
gHouseArea[i] = CreateDynamicSphere(gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ],2.0,0,0,-1);
            if(
gHouses[i][houseOwnerID] != 0)
            {
                if(
gHouses[i][houseDays] == 0)
                {
                     
Dolzen++;
                     new 
str1[100],text[100];
                    
format(str1100"Дома: %d"Dolzen);
                    
SetObjectMaterialText(meria[0], str10,OBJECT_MATERIAL_SIZE_256x256,"Arial"5010xFFFFFFFF0OBJECT_MATERIAL_TEXT_ALIGN_LEFT);
                    
format(text100"%s"gHouses[i][houseOwner]);
                    
strmid(DebtorInfo[Dolzen][0][aName],text,0,strlen(text),100);
                    
DebtorInfo[Dolzen][0][aid] = gHouses[i][houseID];
                    
DebtorInfo[Dolzen][0][hX] = gHouses[i][houseX];
                    
DebtorInfo[Dolzen][0][hY] = gHouses[i][houseY];
                    
DebtorInfo[Dolzen][0][hZ] = gHouses[i][houseZ];
                }
                
gHousePickup[i] = CreateDynamicPickup(1272,1,gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ]);
                
gHouseIcon[i] = CreateDynamicMapIcon(gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ],32,CWHITE);
            }
            else
            {
                
gHousePickup[i] = CreateDynamicPickup(1273,1,gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ]);
                
gHouseIcon[i] = CreateDynamicMapIcon(gHouses[i][houseX],gHouses[i][houseY],gHouses[i][houseZ],31,CWHITE);
            }
            new 
hintid gHouses[i][houseHint];
            for(new 
k;k<5;k++) //Улучшения
            
{
                if(!
gHouses[i][houseImprove][k]) continue;
                switch(
k)
                {
                    case 
1:    CreateDynamicObject(2332,gHintSafe[hintid][0],gHintSafe[hintid][1],gHintSafe[hintid][2],gHintSafe[hintid][3],gHintSafe[hintid][4],gHintSafe[hintid][5],i+1); //Сейф
                    
case 2CreateDynamicObject(2141,gHintFreez[hintid][0],gHintFreez[hintid][1],gHintFreez[hintid][2],gHintFreez[hintid][3],gHintFreez[hintid][4],gHintFreez[hintid][5],i+1);
                    case 
3:
                    {
                        
CreateDynamicObject(2708,gHintStore[hintid][0],gHintStore[hintid][1],gHintStore[hintid][2],gHintStore[hintid][3],gHintStore[hintid][4],gHintStore[hintid][5],i+1);
                        new 
cnt;
                        for(new 
l;l<4;l++)
                        {
                            if(
gHouses[i][houseSkin][l]) cnt++;
                        }
                        
cnt--;
                        if(
cnt && gHouses[i][houseOwnerID]) printf("Возможны лаги с одеждой в доме %d",i+1);
                        else if(
cnt 0)
                        {
                            
CreateDynamicObject(2689,gHintDress[hintid][0][0],gHintDress[hintid][0][1],gHintDress[hintid][0][2],gHintDress[hintid][0][3],gHintDress[hintid][0][4],gHintDress[hintid][0][5],i+1);
                            if(
cnt 1CreateDynamicObject(2704,gHintDress[hintid][1][0],gHintDress[hintid][1][1],gHintDress[hintid][1][2],gHintDress[hintid][1][3],gHintDress[hintid][1][4],gHintDress[hintid][1][5],i+1);
                            if(
cnt 2CreateDynamicObject(2705,gHintDress[hintid][2][0],gHintDress[hintid][2][1],gHintDress[hintid][2][2],gHintDress[hintid][2][3],gHintDress[hintid][2][4],gHintDress[hintid][2][5],i+1);
                        }
                        for(new 
l;l<9;l++)
                        {
                            if(!
gHouses[i][houseGun][l]) continue;
                            
gHouseGunObject[i][l] = CreateDynamicObject(gHintGunID[l],gHintGun[hintid][l][0],gHintGun[hintid][l][1],gHintGun[hintid][l][2],gHintGun[hintid][l][3],gHintGun[hintid][l][4],gHintGun[hintid][l][5],i+1);
                        }
                    }
                }
            }
        }
        
sql_free_result(houses);
        
printf("%d houses loaded"gHouseCount);
    } 
Reply
#2

А ты переведи что он тебе пишет и все поймешь.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)