Help - scripting!
#1

I whant to make a script that : the player if (inputtext == MyVehicle[giveplayerid][MyVehPressurePlate]) and i whant to connect the MyVehicle[giveplayerid][MyVehPressurePlate] to get MyVehicle[giveplayerid][MyVehID]
Any help connecting the 2 values witch both are on one enum einfo.
MyVehicle[giveplayerid][MyVehPressurePlate] doesnt have the same value as MyVehicle[giveplayerid][MyVehID]

If there isnt a way to connect the values, give me other ways to get to MyVehicle[giveplayerid][MyVehID]
I have been so much hours on the laptopp to make this but i cant find the way. Please help, i will give +rep
So much thanks if you helped me!

Code for enum einfo
PHP код:
enum einfo
{
    
MyVehSlot,
    
MyVehModel,
    
Float:MyVehPos[4],
    
MyVehCol[2],
    
MyVehLock,
    
MyVehOwner[MAX_PLAYER_NAME],
    
MyVehAlarm,
    
MyVehCena,
    
MyVehID,
    
MyVehCar,
    
MyVehBike,
    
MyVehBoat,
    
MyVehPlane,
    
MyVehFsale,
    
MyVehRegistracija,
    
MyVehRegistrirano,
    
MyVehKM,
    
MyVehTablicki[8],
    
MyVehPaintjob,
    
MyVehPaintjob1,
    
MyVehSpoiler,
    
MyVehHood,
    
MyVehRoof,
    
MyVehSideSkirt,
    
MyVehWheels,
    
MyVehFrontBumper,
    
MyVehRearBumper,
    
MyVehNitro,
    
MyVehExhaust,
    
MyVehHidraulika,
    
MyVehRightVent,
    
MyVehLeftVent,
};
new 
MyVehicle[MAX_MYVEHS][einfo]; 
Reply
#2

What do you mean by connecting values, exactly? Can you give me an example?
EDIT:

Are you trying to:
Код:
new string[128];

format(string, sizeof(string), "%s %s", MyVehicle[giveplayerid][MyVehPressurePlate], MyVehicle[giveplayerid][MyVehID]);
?

Otherwise, show me the dialog that you're using this in.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)