[HELP ME]I need help with parking bikes.
#1

I dont know i have one problem..when i park bike somewhere and when i shut down my server.When i turn on my server and go to the server and i find bike to place where its spawn when its buyed.I dont know can anyone help me :S ?

Quote:

case 2: //park bike
{
new Float:Poz[ 4 ];
if(GetPlayerVehicleID(playerid) != MInfo[a][mownedvehicle])
{
SCM(playerid, WHITE, "{FF0000}GRESKA:{FFFFFF}You are not on bike.");
SPD(playerid, 52, DIALOG_STYLE_LIST, "BIKE - MENU", "Information\nLocate\nPark\nSell\nPaint", "Select", "Close");
return 1;
}
if(IsPlayerInArea(playerid, 1680.007, -1508.161, 1965.22, -1243.663)) return SCM(playerid, WHITE, "You can not park your bike here.");
if(IsPlayerInArea(playerid, 1486.062, -1776.608, 1653.387, -1567.377)) return SCM(playerid, WHITE, "You can not park your bike here.");
if(IsPlayerInArea(playerid, 1136.201, -1014.694, 1311.132, -856.7839)) return SCM(playerid, WHITE, "You can not park your bike here.");
if(IsPlayerInArea(playerid, 1383.386, -1077.857, 1554.513, -947.582)) return SCM(playerid, WHITE, "You can not park your bike here.");
if(IsPlayerInArea(playerid, 2763.815, -2131.904, 2839.872, -1871.354)) return SCM(playerid, WHITE, "You can not park your bike here.");
if(IsPlayerInArea(playerid, 2763.815, -2131.904, 2839.872, -1871.354)) return SCM(playerid, WHITE, "You can not park your bike here.");
GetVehiclePos(MInfo[a][mownedvehicle], Poz[ 0 ], Poz[ 1 ], Poz[ 2 ]);
GetVehicleZAngle(MInfo[a][mownedvehicle], Poz[ 3 ]);
MInfo[a][mPozX] = Poz[ 0 ];
MInfo[a][mPozY] = Poz[ 1 ];
MInfo[a][mPozZ] = Poz[ 2 ];
MInfo[a][mPozA] = Poz[ 3 ];
MInfo[a][mvw] = GetVehicleVirtualWorld(GetPlayerVehicleID(playerid ));
MInfo[a][ment] = GetPlayerInterior(playerid);
DestroyVehicle(MInfo[a][mownedvehicle]);
MInfo[a][mownedvehicle] = CreateVehicle_H(MInfo[a][mModel], MInfo[a][mPozX], MInfo[a][mPozY], MInfo[a][mPozZ], MInfo[a][mPozA], MInfo[a][mBoja1], MInfo[a][mBoja2], 300000);
SetVehicleNumberPlate(MInfo[a][mownedvehicle], MInfo[a][mTablice]);
SetVehicleToRespawn(MInfo[a][mownedvehicle]);
SetVehicleVirtualWorld(MInfo[a][mownedvehicle], MInfo[a][mvw]);
LinkVehicleToInterior(MInfo[a][mownedvehicle], MInfo[a][ment]);
SCM(playerid, GREEN, "> You parked your bike.");
SPD(playerid, 52, DIALOG_STYLE_LIST, "BIKE - MENU", "Information\nLocate\nPark\nSell\nPaint", "Select", "Close");
new xupixt[170];
format(xupixt, 175, "UPDATE `Motori` SET `PozX` = '%f', `PozY` = '%f', `PozZ` = '%f', `PozA` = '%f', `Virtual` = '%d', `Enterijer` = '%d' WHERE \
`ID` = '%d'", Poz[0], Poz[1], Poz[2], Poz[3], GetVehicleVirtualWorld(GetPlayerVehicleID(playerid )), GetPlayerInterior(playerid), a);
mysql_query(xupixt, THREAD_OSTALO);
}

Reply
#2

Already fixed
Lock the theme.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)