[Ajuda] Velocimetro
#1

Bom, hoje baixei um velocimetro

e tem esse comando aki

pawn Код:
COMMAND:abastecer(playerid, params[])
{
    new vid, engine, lights, alarm, doors, bonnet, boot, objective;

    if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
    if (INT_CheckPlayerAdminLevel(playerid, 1) == 0) return 0;

    if (GetPlayerVehicleSeat(playerid) == 0)
    {
        // Get the vehicleid
        vid = GetPlayerVehicleID(playerid);
        // Refuel the vehicle
        AVehicleData[vid][Fuel] = MaxFuel;
        // Also (re-)start the engine and turn on the lights in case the vehicle is completely out of fuel
        GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vid, 1, 1, alarm, doors, bonnet, boot, objective);
        // Let the player know about it
        SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}Your vehicle is refuelled");
    }
    else
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You're not driving a vehicle");

    // Let the server know that this was a valid command
    return 1;
}
o comando abastecer!!

sу qe de acordo com isso

if (INT_IsPlayerLoggedIn(playerid) == 0) return 0;
if (INT_CheckPlayerAdminLevel(playerid, 1) == 0) return 0;

ADMIN LEVEL?? CERTO??

quando tiro isso

pawn Код:
D:\Arquivos Maninho\• Brasil • [RedBull®] • Free Roam™ • І°№І • 0.3e\filterscripts\velo.pwn(937) : warning 203: symbol is never used: "INT_CheckPlayerAdminLevel"
D:\Arquivos Maninho\• Brasil • [RedBull®] • Free Roam™ • І°№І • 0.3e\filterscripts\velo.pwn(937) : warning 203: symbol is never used: "INT_IsPlayerLoggedIn"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
LINHAS??

EM BRANCO!!

Ajuda Por Favor !!
Reply
#2

Procure Por Essas Linhas Pois Provavelmente Nao Estao Sendo Usadas!
Reply
#3

As vezes й porque vocк definiu o cуdigo para ser usado, e nгo usou
E sгo apenas Warnings, nгo vгo te atrapalhar,
Procura pelo seguinte :
Ctrl + F = INT_CheckPlayerAdminLevel

Provavelmente vai aparecer algo do tipo :
Код:
 new INT_CheckPlayerAdminLevel
new  INT_IsPlayerLoggedIn
Dae й sу deletar essas linhas se vocК quiser.
Reply
#4

nao tem linhas

procurei por: INT_CheckPlayerAdminLevel e INT_IsPlayerLoggedIn

eu axei, mas quando apago, da erros

pawn Код:
INT_IsPlayerLoggedIn(playerid)
{
pawn Код:
INT_CheckPlayerAdminLevel(playerid, AdminLevel)
{
Reply
#5

Xii cara entгo nem sei como te ajudar, sou novato tbm kk
Costuma da esse Never used cmg quando tem variaveis nгo sendo usadas
Reply
#6

ninguem pode ajudar??

sу posso abastecer meu veiculo logado RCON, e os players?? como vao abastecer??

complicado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)