25.06.2011, 12:06
Quote:
Use the debug method in the VehicleLoad function, you need to find out what line the problem is on.
|
so:
Код:
[13:10:22] 1 [13:10:22] 2 [13:10:22] 3 [13:10:22] 4 [13:10:22] 5 [13:10:22] 6 [13:10:22] 7 [13:10:22] 8 [13:10:22] 9
pawn Код:
forward VehicleLoad(playerid);
public VehicleLoad(playerid)
{
new Lastveh;
print("1");
Lastveh = GetPlayerVehicleID(playerid);
print("2");
RemovePlayerFromVehicle(playerid);
print("3");
SendClientMessage(playerid,COLOR_YELLOW,"You have been removed from your vehicle to force objects to load.");
print("4");
SendClientMessage(playerid,COLOR_YELLOW,"Your be put back in when they have loaded.");
print("5");
new Float:X,Float:Y,Float:Z;
print("6");
GetPlayerPos(playerid,X,Y,Z);
print("7");
SetPlayerPos(playerid,X,Y,Z);
print("8");
TogglePlayerControllable(playerid, false);
print("9");
SetTimerEx("LoadVehicleEnd", 3000, 1, "Lastveh",Lastveh);
return 1;
}
Thanks