09.12.2014, 01:36
Alguem ae me ajuda? tб dando erros..
e й algo padrгo do sa-mp e nгo funfa aqui afs..
cуdigos - Wiki
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. |
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);}
}
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);
}