[sscanf Warnings]
#3

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Change
pawn Код:
p,ffff
To
pawn Код:
p<,>ffff
4char.
Fixed that now other warning:
Код:
[21:53:28] sscanf warning: Format specifier does not match parameter count.
[21:53:28] sscanf warning: Format specifier does not match parameter count.
[21:53:28]   Loaded 2 dealerships
[21:53:28] sscanf warning: Format specifier does not match parameter count.
pawn Код:
CMD:dajkluc(playerid, params[])
{
    new pid, id, msg[128];
    if(sscanf(params, "ud", pid, id)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /dajkluc [igrac] [vozilo ID]");
    if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, COLOR_GREY, "Nevalidan Igrac!");
    if(!IsValidVehicle(id)) return SendClientMessage(playerid, COLOR_GREY, "Nevalidno vozilo!");
    if(GetPlayerVehicleAccess(playerid, id) < 2)
        return SendClientMessage(playerid, COLOR_GREY, "Ti nisi vlasnik ovog vozila!");
    if(!PlayerToPlayer(playerid, pid, 10.0)) return SendClientMessage(playerid, COLOR_GREY, "Igrac nije u blizini!");
    SetPVarInt(pid, "CarKeys", id);
    format(msg, sizeof(msg), "Ti si dao klucjeva na %s (%d)", PlayerNameEu(pid), pid);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, msg);
    format(msg, sizeof(msg), "%s (%d) je dao tebi klucjeva iz svog auto.", PlayerNameEu(playerid), playerid);
    SendClientMessage(pid, COLOR_LIGHTBLUE, msg);
    return 1;
}
Reply


Messages In This Thread
[sscanf Warnings] - by GBLTeam - 16.01.2014, 19:28
Re: [sscanf Warnings] - by Patrick - 16.01.2014, 19:32
Re: [sscanf Warnings] - by GBLTeam - 16.01.2014, 19:41
Re: [sscanf Warnings] - by GBLTeam - 16.01.2014, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)