27.03.2016, 16:48
Yes, it's wrong.
Do you want to set a vehicle's owner by his "playerid" ?
Then, you can set a CarOwner for every cars (vehicleid) :
vInfo[vehicleid][CarOwner] = playerid; // It should be a unique indentifier instead of playerid.
And the 3D Text Label :
vInfo[vehicleid][CarOwner3DText] = Create3DTextLabel(...);
Do you want to set a vehicle's owner by his "playerid" ?
Код:
enum CarInfos { CarID, CarOwner, CarModel, CarE, CarEx, Text3D:CarOwner3DText } new vInfo[MAX_VEH][CarInfos] = { {0,-1,522,3,7,Text3D:INVALID_3DTEXT_ID}, {1,-1,411,3,8,Text3D:INVALID_3DTEXT_ID} };
vInfo[vehicleid][CarOwner] = playerid; // It should be a unique indentifier instead of playerid.
And the 3D Text Label :
vInfo[vehicleid][CarOwner3DText] = Create3DTextLabel(...);