[Help] Mysql Dynamic System.
#3

Quote:
Originally Posted by VincentDunn
View Post
Print the queries, and see what they output, I can already assume one is not big enough.
Lol, thanks mate I found the problem now.

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]);
                    }
                }
            }
Reply


Messages In This Thread
[Help] Mysql Dynamic System. - by tony_fitto - 04.07.2012, 19:49
Re: [Help] Mysql Dynamic System. - by ReneG - 04.07.2012, 20:13
Respuesta: Re: [Help] Mysql Dynamic System. - by tony_fitto - 04.07.2012, 20:54
Re: [Help] Mysql Dynamic System. - by Tee - 04.07.2012, 22:13
Respuesta: Re: [Help] Mysql Dynamic System. - by tony_fitto - 07.07.2012, 03:10

Forum Jump:


Users browsing this thread: 3 Guest(s)