14.02.2011, 17:30
tipo ja comeзei a a trabalhar no sabe tune vejao ai
ainda nao ta completo mas dame estes erros
agradeзo..
pawn Код:
#include <a_samp>
#include <dini>
#if defined FILTERSCRIPT
forward TuneThisCar(vehicleid);
forward LoadModsForAll(vehicleid);
forward SaveModsForAll(vehicleid);
new neons[11][0] = {
{18648},
{18647},
{18649},
{18652},
{18651},
{18650},
{18646},
{18646},
{18646},
{18646},
{18646}
};
enum tInfo
{
neon1,
neon2,
neon3,
neon4,
neon5,
neon6,
neon7,
neon8,
neon9,
neon10,
neon11,
}
new neons[MAX_VEHICLES][tInfo];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" FS By Ricardo_Jorge ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" FS By Ricardo_Jorge");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
LoadModsForAll(vehicleid);
TuneThisCar(vehicleid);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
SaveModsForAll(vehicleid);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public TuneThisCar(vehicleid)
{
if(TuneCar[vehicleid][neon1]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod1]); }
if(TuneCar[vehicleid][neon2]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod2]); }
if(TuneCar[vehicleid][neon3]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod3]); }
if(TuneCar[vehicleid][neon4]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod4]); }
if(TuneCar[vehicleid][neon5]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod5]); }
if(TuneCar[vehicleid][neon6]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod6]); }
if(TuneCar[vehicleid][neon7]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod7]); }
if(TuneCar[vehicleid][neon8]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod8]); }
if(TuneCar[vehicleid][neon9]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod9]); }
if(TuneCar[vehicleid][neon10]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod10]); }
if(TuneCar[vehicleid][neon11]!=0) { AddVehicleComponent(vehicleid,TuneCar[vehicleid][mod11]); }
ainda nao ta completo mas dame estes erros
Код:
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(124) : error 017: undefined symbol "LoadModsForAll" C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(131) : error 017: undefined symbol "SaveModsForAll" C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(260) : warning 235: public function lacks forward declaration (symbol "TuneThisCar") C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(262) : error 017: undefined symbol "TuneCar" C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(262) : warning 215: expression has no effect C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(262) : error 001: expected token: ";", but found "]" C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(262) : error 029: invalid expression, assumed zero C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\SaveNeon.pwn(262) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.