SA-MP Forums Archive
[Ajuda] SetVehicleParamsEx_Fixed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SetVehicleParamsEx_Fixed (/showthread.php?tid=549826)



SetVehicleParamsEx_Fixed - PabLoHenriique - 09.12.2014

Alguem ae me ajuda? tб dando erros..

Quote:

C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : error 017: undefined symbol "SetVehicleParamsEx_Fixed"
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : warning 215: expression has no effect
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : error 029: invalid expression, assumed zero
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : warning 215: expression has no effect
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : error 029: invalid expression, assumed zero
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\WSA.pwn(3085) : 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 й algo padrгo do sa-mp e nгo funfa aqui afs..

pawn Код:
SetVehicleParamsEx_Fixed(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective)~// parte do erro
        {
            SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
            if(alarm){
            KillTimer(Timer_VehAlarm[vehicleid]);
            Timer_VehAlarm[vehicleid] = SetTimerEx("DisableVehicleAlarm", 20000, false, "d", vehicleid);}
        }
cуdigos - Wiki
pawn Код:
new Timer_VehAlarm[MAX_VEHICLES];
SetVehicleParamsEx_Fixed(vehicleid, &engine, &lights, &alarm, &doors, &bonnet, &boot, &objective)
{
    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(alarm){
    KillTimer(Timer_VehAlarm[vehicleid]);
    Timer_VehAlarm[vehicleid] = SetTimerEx("DisableVehicleAlarm", 20000, false, "d", vehicleid);}
}
 
forward DisableVehicleAlarm(vehicleid);
public DisableVehicleAlarm(vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid, engine, lights, false, doors, bonnet, boot, objective);
}



Re: SetVehicleParamsEx_Fixed - PabLoHenriique - 09.12.2014

Alguйm?


Re: SetVehicleParamsEx_Fixed - Dolby - 09.12.2014

O cуdigo aparenta estar correto. Vocк declarou essa variбvel no inнcio do Gamemode, logo abaixo dos macros(#define), e colocou o restante no fim do script?