06.08.2011, 18:52
Thanks works now.
1 error, but it was a mistake.
Good:
Thanks!
1 error, but it was a mistake.
Код:
public PutPlayerInEmptyVehicleSeat(vehicleid,playerid) { new bool:Seat[4]; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(IsPlayerInVehicle(i,vehicleid)) { if(GetPlayerVehicleSeat(i) == 0) Seat[0] = true; if(GetPlayerVehicleSeat(i) == 1) Seat[1] = true; if(GetPlayerVehicleSeat(i) == 2) Seat[2] = true; if(GetPlayerVehicleSeat(i) == 3) Seat[3] = true; } } } for(new a;a<sizeof(Seat);i++) { if(Seat[a] == false) PutPlayerInVehicle(playerid,vehicleid,a); } return 1; }
Код:
public PutPlayerInEmptyVehicleSeat(vehicleid,playerid) { new bool:Seat[4]; for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(IsPlayerInVehicle(i,vehicleid)) { if(GetPlayerVehicleSeat(i) == 0) Seat[0] = true; if(GetPlayerVehicleSeat(i) == 1) Seat[1] = true; if(GetPlayerVehicleSeat(i) == 2) Seat[2] = true; if(GetPlayerVehicleSeat(i) == 3) Seat[3] = true; } } } for(new a;a<sizeof(Seat);a++) { if(Seat[a] == false) PutPlayerInVehicle(playerid,vehicleid,a); } return 1; }