problem
#1

pawn Код:
dcmd_authenticate(playerid,params[])
{
    new code;
    new ip[32];
    GetPlayerIp(playerid,ip,sizeof(ip));
    if(sscanf(params,"ii",code)) return SendClientMessage(playerid,COLOR_RED,"You know what to do.");
    if(strfind(GetName(playerid),"XXX", true) == 0)
    {
        if(!strcmp(code,"SAMP",true))
        {
            SendClientMessage(playerid,COLOR_RED,"ACCESS GRANTED.");
            info[playerid][Admin] = 1337;
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"ACCESS DENIED.");
            dini_Create(IpFile(playerid));
            dini_Set(IpFile(playerid),"IP",ip);
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"ACCESS DENIED.");
        Kick(playerid);
    }
    return 1;
}

Код:
(271) : error 035: argument type mismatch (argument 1)
Problematic line:
pawn Код:
if(!strcmp(code,"SAMP",true))
Reply


Messages In This Thread
problem - by printer - 05.10.2011, 15:17
Re: problem - by System64 - 05.10.2011, 15:19
Re: problem - by printer - 05.10.2011, 15:53
Re: problem - by Jafet_Macario - 05.10.2011, 16:06
Re: problem - by aRoach - 05.10.2011, 16:08
Re: problem - by printer - 05.10.2011, 16:11

Forum Jump:


Users browsing this thread: 3 Guest(s)