lundi 5 janvier 2015

[MySQL] Numberplate Not appearing in Dialog

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.)


pawn Code:




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

}





Here is the Loading.


pawn Code:




cache_get_field_content(i, "vPlate", temp), format(VehicleInfo[playerid][vPlate], 12, "%s", temp);





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?




Aucun commentaire:

Enregistrer un commentaire