04.07.2012, 20:54
Quote:
Print the queries, and see what they output, I can already assume one is not big enough.
|
When I did the print thing, I noticed that the Query\'s where in same name when there where two of them. Now it works when I changed it.
Just got one other problem, some how when I exit the damn garage my car disapares. But it works to enter it but I doesn\'t see the garage until I exit the car.
This is what I got under /enter
pawn Code:
for(new i = 0; i < sizeof(GarageInfo); i++)
{
new getcarid = GetPlayerVehicleID(playerid);
if (PlayerToPoint(7, playerid, GarageInfo[i][gExtX], GarageInfo[i][gExtY], GarageInfo[i][gExtZ]))
{
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, GarageInfo[i][gIntX], GarageInfo[i][gIntY], GarageInfo[i][gIntZ]);
SetVehicleVirtualWorld(tmpcar, GarageInfo[i][gWorld]);
SetPlayerVirtualWorld(playerid, GarageInfo[i][gWorld]);
SetVehicleZAngle(tmpcar, 180.0000);
PutPlayerInVehicle(playerid, getcarid, 0);
}
else
{
SetPlayerVirtualWorld(playerid, GarageInfo[i][gWorld]);
SetPlayerFacingAngle(playerid, 180.0000);
SetPlayerPos(playerid, GarageInfo[i][gIntX], GarageInfo[i][gIntY], GarageInfo[i][gIntZ]-0.0888);
}
}
else if (PlayerToPoint(7, playerid, GarageInfo[i][gIntX], GarageInfo[i][gIntY], GarageInfo[i][gIntZ]))
{
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, GarageInfo[i][gExtX], GarageInfo[i][gExtY], GarageInfo[i][gExtZ]+0.0888);
SetVehicleVirtualWorld(tmpcar, 0);
SetVehicleZAngle(tmpcar, GarageInfo[i][gRot]);
PutPlayerInVehicle(playerid, getcarid, 0);
}
else
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, GarageInfo[i][gRot]);
SetPlayerPos(playerid, GarageInfo[i][gExtX], GarageInfo[i][gExtY], GarageInfo[i][gExtZ]);
}
}
}