25.01.2010, 15:23
I use a system Car Ownership. I create a Command that the players saves the postions' car where he wants. But, when he saves the positions, the car appear in other positions. It appear in the street near the save positions.
the command is:
What Can I do??
the command is:
Код:
if(strcmp(cmd, "/estacionar", true) == 0) { if(IsPlayerConnected(playerid)) { new Float:poswx, Float:poswy, Float:poswz; new Float:poswa, carx = GetPlayerVehicleID(playerid); GetVehiclePos(carx, poswx, poswy, poswz); GetVehicleZAngle(carx, poswa); CarInfo[PlayerInfo[playerid][pIdentificacao]-1][cNovaPos] = 1; CarInfo[PlayerInfo[playerid][pIdentificacao]-1][cLocationwx] = poswx; CarInfo[PlayerInfo[playerid][pIdentificacao]-1][cLocationwy] = poswy; CarInfo[PlayerInfo[playerid][pIdentificacao]-1][cLocationwz] = poswy; CarInfo[PlayerInfo[playerid][pIdentificacao]-1][cAnglew] = poswa; SaveCars(); OnCarsUpdate(); new string6[256]; }