Y_ini and sscanf
#1

Y_ini

Code
pawn Код:
CMD:aka(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin])
    {
        new TargetID[3],i,string[256],IP[50];
        if(sscanf(params,"u[3]",TargetID)) return SendClientMessage(playerid, COLOR_ERROR, "USAGE: /aka (Name/ID)");
        for (i = 0; TargetID[i] != INVALID_PLAYER_ID; ++i)
        {
            if (TargetID[i] == cellmin)
            {
                format(string,sizeof(string),"%s Found In Multiple Names, Please Be More Specific.",TargetID);
                SendClientMessage(playerid,COLOR_ERROR,string);
                break;

             }
         }
         if (i == 0)
         {
            format(string,sizeof(string),"%s Is Not a Valid Player/ID.",TargetID);
            SendClientMessage(playerid,COLOR_ERROR,string);
         }
         if(i == 1)
         {
            GetPlayerIp(TargetID,IP,50);
            format(string,sizeof(string),"|- %s's AKA -|", PlayerInfo[TargetID][pUserName]);
            SendClientMessage(playerid,COLOR_BLUE,string);
            format(string,sizeof(string),"|- Id: %d | Ip: %s | Names: %s -|", TargetID, pIP, INI_Load("/aka.txt",pIP));
            return SendClientMessage(playerid,COLOR_BLUE,string);
        }
    }
    else return 1;
    return 1;
}
Errors
pawn Код:
(5213) : error 035: argument type mismatch (argument 1)
(5214) : error 033: array must be indexed (variable "TargetID")
(5216) : warning 213: tag mismatch
Line-Errors
pawn Код:
GetPlayerIp(TargetID,IP,50);//5213
format(string,sizeof(string),"|- %s's AKA -|", PlayerInfo[TargetID][pUserName]);//5214
format(string,sizeof(string),"|- Id: %d | Ip: %s | Names: %s -|", TargetID, pIP, INI_Load("/aka.txt",pIP));//5216

SSCANF
Code
pawn Код:
SSCANF_Option("MATCH_NAME_PARTIAL", 1);
Error
pawn Код:
error 021: symbol already defined: "SSCANF_Option"
What i wanted to script
First i needed to use "MATCH_NAME_PARTIAL" Feature of SSCANF2
Second I wanted to make an AKA System (Also Known As) So this is command with it i can't find any system with y_ini

Please Don't Post https://github.com/Y-Less/sscanf/wiki/Users#user-lists and https://github.com/Y-Less/sscanf/wiki/Settings#Global i have already read it and that's all i got to know, I searched On ****** got nothing
Reply


Messages In This Thread
MATCH_NAME_PARTIAL - by AroseKhanNiazi - 14.08.2014, 22:54
Re: Y_ini and sscanf - by Threshold - 14.08.2014, 22:59
Re: Y_ini and sscanf - by AroseKhanNiazi - 14.08.2014, 23:01
Re: Y_ini and sscanf - by Virtual1ty - 14.08.2014, 23:07
Re: Y_ini and sscanf - by AroseKhanNiazi - 14.08.2014, 23:16
Re: Y_ini and sscanf - by Virtual1ty - 14.08.2014, 23:20
Re: Y_ini and sscanf - by AroseKhanNiazi - 14.08.2014, 23:22
Re: Y_ini and sscanf - by Virtual1ty - 14.08.2014, 23:25
Re: Y_ini and sscanf - by AroseKhanNiazi - 14.08.2014, 23:28
Re: Y_ini and sscanf - by Virtual1ty - 14.08.2014, 23:34

Forum Jump:


Users browsing this thread: 2 Guest(s)