Respect command problems!(sscanf error)
#1

pawn Код:
error 035: argument type mismatch (argument 1)

CMD:respect(playerid,params)
{
    new id;
    if(CanUseCmd[playerid] == true)
    {
        if(IsPlayerConnected(id))
        {
            [B]if(sscanf(params, "r", id)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /respect <playerid/partofname>");//This line![/B]
            PlayerInfo[playerid][StreetRespect] ++;
            RestrictTime[playerid] = SetTimer("RestrictionOver", 3_600_000, false);
            CanUseCmd[playerid] = false;
        }
    }
    else return SendClientMessage(playerid, 0xCC0000AA, "You can't use this command yet, You can give only 1 Street point per 1 hour!");
    return 1;
}
Reply
#2

Change "r" to "d"
Reply
#3

Still same error! I don't get it where is the prob in it..
Reply
#4

what error(s) do you get?
Reply
#5

error 035: argument type mismatch (argument 1)

line:
if(sscanf(params, "r", id)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /respect <playerid/partofname>");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)