09.02.2012, 19:55
Can someone help me with /engine a simple /engine!please!this style i get 10 errors try it and see erorrs im hurring up im romanian please help!
Код:
new vehicleid = GetPlayerVehicleID(playerid); new string[126]; new vehiclename[126]; GetVehicleName(vehicleid, vehiclename, sizeof(vehiclename)); GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); if(IsPlayerDriver(playerid)) { if(engine != 1) { engine = 1; SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective); format(string, sizeof(string), "* %s turns the engine of their %s on.", playersname(playerid), vehiclename); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } else { engine = 0; SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective); format(string, sizeof(string), "* %s turns the vehicles engine off.", playersname(playerid)); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } } return engine; }