Nappal is égnie kell, nem?!
CMD:lampabe(playerid, params[]){ new engine, lights, alarm, doors, bonnet, boot, objective; new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,1,1,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, -1, \"Felkapacsolta a fényszórókat!\"); return 1;}CMD:lampaki(playerid, params[]){ new engine, lights, alarm, doors, bonnet, boot, objective; new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,0,0,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, -1, \"Lekapacsolta a fényszórókat!\"); return 1;}
Valami ilyesmire gondolsz? CMD:lampabe(playerid, params[]){ new engine, lights, alarm, doors, bonnet, boot, objective; new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,1,1,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, -1, \"Felkapacsolta a fényszórókat!\"); return 1;}CMD:lampaki(playerid, params[]){ new engine, lights, alarm, doors, bonnet, boot, objective; new vid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,0,0,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, -1, \"Lekapacsolta a fényszórókat!\"); return 1;}
if(!strcmp(\"/l-on\", cmdtext, true)){GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, ON, alarm, doors, bonnet, boot, objective);return 1;}if(!strcmp(\"/l-off\", cmdtext, true)){GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, OFF, alarm, doors, bonnet, boot, objective);return 1;}
http://wiki.sa-mp.com/wiki/ManualVehicleEngineAndLights
http://wiki.sa-mp.com/wiki/SetVehicleParamsEx
public OnGameModeInit(){ ManualVehicleEngineAndLights();}
public OnGameModeInit(){ ManualVehicleLights();}
Szerver tulaj vagy oszt kínai?Tessék ezt: public OnGameModeInit(){ ManualVehicleEngineAndLights();} Erre: public OnGameModeInit(){ ManualVehicleLights();} Üdv
D:\\Egyéb Fájlok\\SaMp dolgaim\\Enyimek\\NewTDC Project\\gamemodes\\TDC.pwn(3238) : error 017: undefined symbol \"ManualVehicleLights\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
new engine, lights, alarm, doors, bonnet, boot, objective;GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);