sscanf warning
#1

pawn Код:
dcmd_Mute(playerid, dcmdd)
{
    new id, time, reason[64], string[100];
    if(!IsAdmin(playerid)) return 0;
    else if(sscanf(params, "uds", id, time, reason)) return SendClientMessage(playerid, Red, "/Mute [Name / ID] [Minutes] [Reason]");
    else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Orange, ".щзчп жд айрре озебш");
    else if(InMute[id] == 1) return SendClientMessage(playerid,Red,"! щзчп жд лбш роца бойеи");
    else
    {
        InMute[id] = 1;
        MuteTimer = SetTimerEx("UnMute", 60000*time, false, "d", id);
        format(string, sizeof(string), "[ойеи [жоп: %d гчеъ сйбд: %s %s ръп м %s дагойп", time, reason, GetName(id), GetName(playerid));
        SendClientMessageToAll(Yellow, string);
    }
    return 1;
}
pawn Код:
sscanf warning: Strings without a length are .........
what the problem ??
Reply
#2

this is the problem
pawn Код:
if(sscanf(params, "uds[128]", id, time, reason))//thas how it needs to be!
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
this is the problem
pawn Код:
if(sscanf(params, "uds[128]", id, time, reason))//thas how it needs to be!
why 128 and not 64 ?
work !
thanks !!
Reply
#4

Quote:
Originally Posted by benel1
Посмотреть сообщение
why 128 and not 64 ?
128 is wrong, use 64.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)