sscanf warning: 'z' is deprecated, consider using 'S' instead.
#2

Try this. The error explains all.

PHP код:
CMD:editbiz(playeridparams[]) 

    new 
Usage[128], idstring128 ]; 
    if( 
sscanfparams"ds[128]"idUsage) ) 
    { 
        if( 
PlayerInfo[playerid][pAdmin] >= 9
        { 
            
SendClientMessageplayeridCOLOR_WHITE"USAGE: /movebiz [businessid] [name]" ); 
            
SendClientMessageplayeridCOLOR_GREY"Available Names: Exterior, Interior" ); 
        } 
    } 
    else 
    { 
        if( 
PlayerInfo[playerid][pAdmin] >= 9
        { 
            
formatstringsizeof( string ), "Businesses/Business_%d.ini"id); 
            if(
strcmp(Usage"exterior"true) == 
            { 
                if(!
dini_Exists(string)) 
                { 
                    
SendClientMessageplayeridCOLOR_GREY"Invalid Business ID!" ); 
                    return 
1
                } 
                else 
                { 
                    
BizzInfo[id][bExteriorID] = GetPlayerInteriorplayerid ); 
                    
GetPlayerPosplayeridBizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]); 
                    if(
BizzInfo[id][bOwned] == 1
                    { 
                        new 
id
                        
DestroyDynamicPickup(BizzInfo[id][bPickupID]); 
                        
DestroyDynamic3DTextLabel(business1[id]); 
                        
BizzInfo[id][bPickupID] = CreateDynamicPickup(1913323BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ], 0, -1, -1150.0 ); 
                        
format(stringsizeof(string), "{FF0000}[%s]\n"YELLOW_E"Owner: %s\n"GREEN_E"%s\n"YELLOW_E"Status : %s\n"GREEN_E"Bizz ID: %d",BT(id), BizzInfo[i][bOwner], BizzInfo[i][bMessage],BL(id),i); 
                        
business1[id] = CreateDynamic3DTextLabel(stringCOLOR_WHITEBizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1100.0); 
                    } 
                    else 
                    { 
                        
DestroyDynamicPickup(BizzInfo[id][bPickupID]); 
                        
DestroyDynamic3DTextLabel(business2[id]); 
                        
BizzInfo[id][bPickupID] = CreateDynamicPickup(1913323BizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ], 0, -1, -1150.0 ); 
                        
format(stringsizeof(string), "{FF0000}[%s Dijual]\n"YELLOW_E"Harga: $%d\n"GREEN_E"Level: %d\n"YELLOW_E"Bizz ID: %d\n((/buybiz)) "BT(id),BizzInfo[id][bBuyPrice],BizzInfo[id][bLevelNeeded], id); 
                        
business2[id] = CreateDynamic3DTextLabel(stringCOLOR_WHITEBizzInfo[id][bEntranceX], BizzInfo[id][bEntranceY], BizzInfo[id][bEntranceZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1100.0); 
                    } 
                    
SendClientMessageplayeridCOLOR_WHITE"Exterior changed!" ); 
                    
SaveBusiness(id); 
                } 
            } 
            else if(
strcmp(Usage"interior"true) == 
            { 
                if(!
dini_Exists(string)) 
                { 
                    
SendClientMessageplayeridCOLOR_GREY"Invalid Business ID!" ); 
                    return 
1
                } 
                else 
                { 
                    
GetPlayerPosplayeridBizzInfo[id][bExitX], BizzInfo[id][bExitY], BizzInfo[id][bExitZ]); 
                    
BizzInfo[id][bInteriorID] = GetPlayerInteriorplayerid ); 
                    
SendClientMessageplayeridCOLOR_WHITE"Interior changed!" ); 
                    
SaveBusiness(id); 
                } 
            } 
        } 
    } 
    return 
1

Reply


Messages In This Thread
sscanf warning: 'z' is deprecated, consider using 'S' instead. - by DandyCorleone - 01.01.2017, 12:21
Re: sscanf warning: 'z' is deprecated, consider using 'S' instead. - by AjaxM - 01.01.2017, 12:28
Re: sscanf warning: 'z' is deprecated, consider using 'S' instead. - by Konstantinos - 01.01.2017, 12:29
Re: sscanf warning: 'z' is deprecated, consider using 'S' instead. - by DandyCorleone - 01.01.2017, 12:37

Forum Jump:


Users browsing this thread: 3 Guest(s)