1 Error
#1

pawn Код:
C:\Users\Khan_vb\Desktop\Server.UFS\XRS\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Users\Khan_vb\Desktop\Server.UFS\XRS\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
//ERROR             ShowPlayerDialog(playerid,Clan_SkinM,DIALOG_STYLE_INPUT,"{00FF00}UFS{FFFFFF} - Clan Member Skin","{FF9900}Please Insert Member Skin of the Clan","Next","");
        }
        if(!response)
        {
            //DisbandClan(playerid);
        }
    }

pawn Код:
if(dialogid == Clan_SkinL)
    {
  //WARNING     if(response)
Reply
#2

Show the full code.
Reply
#3

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    //--------------------------------------------------------------------------
    //Create Clan - Dialogs and Steps
    //--------------------------------------------------------------------------
    if(dialogid == CreateC_D)
    {
        if(response)
        {
            if(strlen(inputtext) < 3 && strlen(inputtext) > 100)  
            {
                SendClientMessage(playerid, red, "ERROR: Clan Name must bee betwen 3 and 100 characters!");
                ShowPlayerDialog(playerid, CreateC_D, DIALOG_STYLE_INPUT, "{00FF00}UFS{FFFFFF} - Create Clan", "{FFFFFF}Hi!\nFollow the next steps to Successfully Create your Own Clan!\n\n{00FF00}1st Step:{FFFFFF} Please Insert below the name of your clan:","Next","Cancel");
            }
            else if(strlen(inputtext) >= 3 && strlen(inputtext) < 100)
            {
                CreateClan(playerid, inputtext, "", "", "");
            }
        }
    }
    //--------------------------------------------------------------------------
    if(dialogid == Clan_SkinL)
    {
        if(response)
        {
            new SkinID = strval(inputtext);
            if ((SkinID < 0) || (SkinID > 299) || IsInvalidSkin(SkinID))
            {
                SendClientMessage(playerid, -1, "{FF0000}ERROR: Clan Skin Leader is invalid");
                ShowPlayerDialog(playerid,Clan_SkinL,DIALOG_STYLE_INPUT,"{00FF00}UFS{FFFFFF} - Clan Leader Skin","{FFFFFF}Sorry but the Clan Skin Leader is invalid\n\nPlease Insert Skin Leader of the Clan","Next","Cancel");
                return 0;
            }
            new CQuery[300];
            format(CQuery, sizeof(CQuery), "UPDATE clans SET lskin = %d WHERE clanname = '%s'", SkinID, GetPlayerClan(playerid));
            db_query( Database, CQuery );
            SetPlayerSkin(playerid,SkinID);
            ShowPlayerDialog(playerid,Clan_SkinM,DIALOG_STYLE_INPUT,"{00FF00}UFS{FFFFFF} - Clan Member Skin","{FFFFFF}Please Insert Member Skin of the Clan","Next","");
        }
        if(!response)
        {
            //DisbandClan(playerid);
        }
    }
Reply
#4

The warning and the error are from the sscanf2.inc file not your script. I'll assume you have:
pawn Код:
public OnPlayerDisconnect(playerid)
to the script and it should be:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
Reply
#5

Where i've to add these 2 Lines? can you tell me.?
Reply
#6

pawn Код:
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
+rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)