VehInfo[vehid][Model] = namev
public mymakepersonal(playerid) { new name5[MAX_PLAYER_NAME], namev; GetPlayerName(playerid, name5, sizeof(name5)); new vehid = GetPlayerVehicleID(playerid); new string2[185]; VehInfo[vehid][Cumparata] = 1; namev = VehicleNames[GetVehicleModel(vehid)-400]; AccountInfo[playerid][Vehicule]++; strmid(VehInfo[vehid][Propietar], name5, 0, strlen(name5), 999); TogglePlayerControllable(playerid, 1); SaveThisCar(vehid); GameTextForPlayer(playerid, "~w~Felicitari~n~Nu uita sa o parchezi cu /park!", 5000, 3); SendClientMessage(playerid, 0xFFFFFFFF, "Felicitari ti-ai cumparat o masina noua!"); format(string2, sizeof(string2), " Propietar: %s \n Model: %s",VehInfo[vehid][Propietar], GetVehicleName(vehid)); Attach3DTextLabelToVehicle( vtextlabel[vehid] , vehid, 0.0, 0.0, 0.0); Update3DTextLabelText(vtextlabel[vehid], 0xFF4500FF, string2); new Float:x, Float:y, Float:z, Float:Angle; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, Angle); VehInfo[vehid][Model] = namev; VehInfo[vehid][Locatiex] = 2149.1016; VehInfo[vehid][Locatiey] = -1133.6986; VehInfo[vehid][Locatiez] = 25.5670; VehInfo[vehid][Rotatie]= 265.1599; SetPlayerFacingAngle(playerid, Angle); SetVehiclePos(vehid, x, y, z); SetVehicleZAngle(vehid, Angle); SaveThisCar(vehid); }
VehicleNames[GetVehicleModel(vehid)-400]
format(namev,sizeof(namev),"%s",VehInfo[vehid][Model]);
i dont think this will return the vehicle's name so i suggest you use this Include
|
They may already be using https://github.com/AbyssMorgan/SA-MP...de/SAM/EVF.inc ...
https://sampforum.blast.hk/showthread.php?tid=611142 |