[Ajuda] erro na hora de compilar
#1

esses sao os erros
Quote:

C:\Users\Cliente\Desktop\Brasil Play Facil [RPG v3.1]\gamemodes\PlayFacil.pwn(1883) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Users\Cliente\Desktop\Brasil Play Facil [RPG v3.1]\gamemodes\PlayFacil.pwn(1883) : warning 202: number of arguments does not match definition
C:\Users\Cliente\Desktop\Brasil Play Facil [RPG v3.1]\gamemodes\PlayFacil.pwn(1883) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Cliente\Desktop\Brasil Play Facil [RPG v3.1]\gamemodes\PlayFacil.pwn(1883) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Cliente\Desktop\Brasil Play Facil [RPG v3.1]\gamemodes\PlayFacil.pwn(1883) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



e essa й a linha

Quote:

vehicleid = GetPlayerVehicleID(playerid);GetVehicleParamsEx(ve hicleid, engine, lights, alarm, doors, bonnet, boot, objective);if(SetPVarInt(playerid,"Lights") == 1){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);SetPVarInt(playerid,"Lights",0);}else if(GetPVarInt(playerid,"Lights") == 0){SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);

Reply
#2

#edit: errei.
Reply
#3

Vocк nгo havia fechado as chaves e colocou ve hicleid, onde era para por vehicleid

pawn Код:
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

if(SetPVarInt(playerid,"Lights") == 1)
{
    SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
    SetPVarInt(playerid,"Lights",0);
}
else
if(GetPVarInt(playerid,"Lights") == 0)
{
    SetVehicleParamsEx(vehicleid, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
}
Reply
#4

Includes desatualizadas
Reply
#5

isso ta errado olha aqui

https://sampwiki.blast.hk/wiki/GetVehicleParamsEx
Reply
#6

Agora sim...

Use isto para acender/apagar os farуis:
PHP код:
FarolVeiculo(GetPlayerVehicleID(playerid)); 
e a funзгo:
PHP код:
FarolVeiculo(vehicleid)
{
    static 
enginelightsalarmdoorsbonnetbootobjective;
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
    
    if(
lights == 1SetVehicleParamsEx(vehicleidengineVEHICLE_PARAMS_OFFalarmdoorsbonnetbootobjective);
    else 
SetVehicleParamsEx(vehicleidengineVEHICLE_PARAMS_ONalarmdoorsbonnetbootobjective);
    return 
0x01;

E certifique-se de ter a ъltima versгo do pacote sa-mp server.
>> download
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)