05.01.2015, 08:33
I fixed the problem of Loading vehicles, but now another appeared. The Numberplate is 'LOADED', it even sets to the Correct vehicle. But doesn't appear in a Dialog. Here's the related code.
The Command /mycars. (I showed the code for only the first vehicle.)
Here is the Loading.
It loads the vehicle numberplates, sets them, respawns the vehicles. It works fine. But in this command, they aren't appearing in the Dialog.
Here is the Result:
You can see, for all the vehicles, the Plate is empty. It set them, so they load fine. Something wrong with the Command, probably. Any Help?
The Command /mycars. (I showed the code for only the first vehicle.)
pawn Код:
if(OwnedVehicle[playerid][0][loaded])
{
format(string, sizeof(string), "%s (ID: %d) Plate: %s\n", GetVehicleName(OwnedVehicle[playerid][0][ID]), OwnedVehicle[playerid][0][vID], VehicleInfo[OwnedVehicle[playerid][0][ID]][vPlate]);
}
pawn Код:
cache_get_field_content(i, "vPlate", temp), format(VehicleInfo[playerid][vPlate], 12, "%s", temp);
Here is the Result:
You can see, for all the vehicles, the Plate is empty. It set them, so they load fine. Something wrong with the Command, probably. Any Help?