16.01.2014, 19:41
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;
}