їCуmo puedo reparar estos warning?
#1

їCуmo puedo reparar los warning que me lanza al compilar? Lo que hice fue agregar mбs coordenadas a la hora de usar /arrestar envie a otros lugares, pero me tira muchos de esos warning. їCуmo podrнa repararlo?

Acб dejo los Warning que me tira y gracias de antemano

Son muchos mбs pero dicen lo mismo.
Код:
warning 202: number of arguments does not match definition
Estas son las coordenadas.

Код:
new Float:LSPDPrisonSpawns[10][11] = {
{1927.0753,1197.9313,18.1259},
{1927.6934,1195.1487,18.1259},
{1927.6345,1192.0869,18.1259},
{1927.0598,1188.6780,18.1259},
{1926.7836,1185.6752,18.1259},
{1911.4761,1185.5520,18.1259},
{1911.9865,1188.9818,18.1259},
{1911.2690,1192.0034,18.1259},
{1910.8414,1195.0859,18.1259},
{1911.0773,1198.2438,18.1259}
};
Y acб es donde se emplea

Код:
CMD:arrestar(playerid, params[]){
    if(IsACop(playerid)){
         if(!IsAtArrestPoint(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "No estбs en el punto de entrega.");
        new string[128], giveplayerid, time;
        if(sscanf(params, "dddd", giveplayerid, time)) return SendClientMessageEx(playerid, COLOR_WHITE, "Utiliza: /arrestar (playerid) (Minutos) ");
        if(time < 1 || time > 300) { SendClientMessageEx(playerid, COLOR_WHITE, "Tiempo: 1 a 300 minutos."); return 1; }
        new suspect = GetClosestPlayer(playerid);
  if(IsPlayerConnected(suspect)){
   if(ProxDetectorS(5.0, playerid,suspect)){
                if(Info[suspect][pWantedLevel] < 1 && Info[playerid][pMember] != 8){
                    SendClientMessageEx(playerid, COLOR_WHITE, "El sospechoso debe tener un nivel de bъsqueda de al menos una estrella.");
                    return 1;
                }
                format(string, sizeof(string), "%s fue arrestado.", GetPlayerNameEx(suspect));
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
                format(string, sizeof(string), "[Radio de policнa] {FFFFFF}(Oficial %s) dice: hemos arrestado a {00D2CF}%s.", GetPlayerNameEx(playerid), GetPlayerNameEx(suspect));
                SendRadioMessage(1, TEAM_BLUE_COLOR, string);
                ResetPlayerWeapons(suspect);
                GameTextForPlayer(suspect, "Fuiste arrestado", 5000, 5);
                if(IsPlayerInRangeOfPoint(playerid, 4.0, 1921.7794,1201.6322,18.1259)){
                    SetPlayerFacingAngle(suspect, 0);
                    if(Info[suspect][pVIP] >= 2)
                    {
                        Info[suspect][pJailTime] = ((time*60)*75)/100;
                    }
                    else
                    {
                        Info[suspect][pJailTime] = time * 60;
                    }
                    DeletePVar(suspect, "IsFrozen");
                    new rand;
                    rand = random(sizeof(LSPDPrisonSpawns));
            SetPlayerPos(playerid, LSPDPrisonSpawns[rand][0], LSPDPrisonSpawns[rand][1], LSPDPrisonSpawns[rand][2],LSPDPrisonSpawns[rand][3], LSPDPrisonSpawns[rand][4], LSPDPrisonSpawns[rand][5],
            LSPDPrisonSpawns[rand][6], LSPDPrisonSpawns[rand][7], LSPDPrisonSpawns[rand][8],LSPDPrisonSpawns[rand][9], LSPDPrisonSpawns[rand][10]);
                    LoadObjects(suspect);
                    SetPlayerInterior(suspect, 0);
                    Info[suspect][pInt] = 10;
                    Info[suspect][pJailed] = 2;
                    PhoneOnline[suspect] = 1;
                    Info[suspect][pArrested] += 1;
                    Info[suspect][pWantedLevel] = 0;
                    SetPlayerToTeamColor(suspect);
                    SetPlayerWantedLevel(suspect, 0);
                    ClearAnimations(suspect);
                    Info[suspect][pEstado] = 0;
                    DeletePVar(suspect, "PlayerCuffed");
                    PlayerCuffedTime[suspect] = 0;
                    Info[suspect][pVW] = 0;
                    SetPlayerVirtualWorld(suspect, 0);
Reply


Messages In This Thread
їCуmo puedo reparar estos warning? - by Strikeskp - 04.05.2017, 00:56
Re: їCуmo puedo reparar estos warning? - by RIDE2DAY - 04.05.2017, 01:33
Re: їCуmo puedo reparar estos warning? - by Strikeskp - 04.05.2017, 01:47

Forum Jump:


Users browsing this thread: 1 Guest(s)