[Ajuda] Ajuda com um warning
#1

Eai galera do Foruns Samp, estou com um problema, quem poder me ajudar ai eu agradeзo, flw vlw



Erro:
pawn Код:
(42234) : warning 202: number of arguments does not match definition
Linha do Erro:
pawn Код:
CarregarTunning();
Codigo Inteiro:
pawn Код:
if(strcmp(tmp, "estacionar", true) == 0)
        {
            if(PlayerInfo[playerid][pEstacionado] == 0)
            {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem autorizaзao pra estacionar pessa a um Admin Master!");
            return 1;
            }
            if(PlayerInfo[playerid][pCarKey] != vehid)
            {
                SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro VIP.");
                return 1;
                }
                new Float:x,Float:y,Float:z;
                new Float:a;
                new carid;
                new getcarid;
                new Veiculo = PlayerInfo[playerid][pVeiculo];
                if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey]) { carid = PlayerInfo[playerid][pCarKey]; }
                if(IsPlayerInVehicle(playerid,carid) && CarInfo[Veiculo][cOwned] == 1)
                {
                    getcarid = GetPlayerVehicleID(playerid);
                    GetPlayerName(playerid, playername, sizeof(playername));
                    GetVehiclePos(carid, x, y, z);
                    GetVehicleZAngle(carid, a);
                    if(PlayerInfo[playerid][pCarKey] == 0)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Veiculo!");
                        return 1;
                    }
                    if(getcarid == carid)
                    {
                        CarInfo[Veiculo][cLocationx] = x;
                        CarInfo[Veiculo][cLocationy] = y;
                        CarInfo[Veiculo][cLocationz] = z;
                        CarInfo[Veiculo][cAngle] = a;
                        format(string, sizeof(string), "~n~ Voce estacionou seu Veiculo aqui. ~n~");
                        GameTextForPlayer(playerid, "Agora seu Veiculo ira dar respawn aqui, ou seja nascer aqui.", 10000, 3);
                        DestroyVehicle(carid);
                        CreateVehicle(CarInfo[Veiculo][cModel],CarInfo[Veiculo][cLocationx],CarInfo[Veiculo][cLocationy],CarInfo[Veiculo][cLocationz]+1.0,CarInfo[Veiculo][cAngle],CarInfo[Veiculo][cColorOne],CarInfo[Veiculo][cColorTwo],60000);
                        TogglePlayerControllable(playerid, 1);
                        PlayerInfo[playerid][pEstacionado] = 0;
                        CarregarTunning();
                        SaveCars();
                        return 1;
                    }

                    return 1;
                }

        return 1;
    }
Reply
#2

Bem, pelo breve conhecimento que tenho, como й um comando para carregar Tunning de um veiculos nгo seria ao certo vocк chamar a funзгo complementando com o ID do carro ? Corrija-me se eu estiver errado por favor, й apenas uma sugestгo do que pode ser.

PHP код:
CarregarTunning(vehicleid); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)