make text to dialog
#4

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
pawn Код:
CMD:aka(playerid,params[])
{
    if(pInfo[playerid][pLevel] >= 1)
    {
        new id,Ffile[128],dstring[128];
        if(sscanf(params, "u", id)) return SendClientMessage(playerid, yellow, "Usage: /aka <Player ID/Part of Nick>");
        if(IsPlayerConnected(id))
        {
            strdel(aka,0,256);
            CommandToAdmins(playerid,"aka");
            GetPlayerIp(id,playerIP,16);
            format(Ffile,sizeof(Ffile),"JLadmin/Logs/aka.ini");
            INI_ParseFile(Ffile,"GetAkaLog");
            format(dstring,sizeof(dstring),">> Player %s(ID: %d)'s Nick names\n", GetName(id), id);
            if(strlen(aka) > 70)
            {
                strmid(string,aka,0,75);
                format(dstring,sizeof(dstring),"%s>> IP: %s - Nicks: %s\n", playerIP , string);
                strmid(string,aka,75,sizeof(aka));
                format(dstring, sizeof(dstring),"%s%s", string);
            }
            else
            {
                format(dstring,sizeof(dstring),">> IP: %s - Nicks: %s", playerIP, aka);
            }
                ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "AKA", dstring, "Close", "");
            return 1;
        }
        else return ShowMessage(playerid, red, 2);
    }
    else return ShowMessage(playerid, red, 1);
}
thanks but I have warningss...

Код:
(5688) : error 017: undefined symbol "string"
(5689) : error 017: undefined symbol "string"
(5690) : error 017: undefined symbol "string"
(5690) : error 035: argument type mismatch (argument 2)
(5691) : error 017: undefined symbol "string"
Line

Код HTML:
                strmid(string,aka,0,75);
                format(dstring,sizeof(dstring),"%s>> IP: %s - Nicks: %s\n", playerIP , string);
                strmid(string,aka,75,sizeof(aka));
                format(dstring, sizeof(dstring),"%s%s", string);
Reply


Messages In This Thread
make text to dialog - by kbalor - 29.09.2013, 06:33
Re: make text to dialog - by kbalor - 29.09.2013, 15:22
Re: make text to dialog - by Dragonsaurus - 29.09.2013, 15:49
Re: make text to dialog - by kbalor - 29.09.2013, 16:38
Re: make text to dialog - by Lidor124 - 29.09.2013, 16:45
Re: make text to dialog - by kbalor - 29.09.2013, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)