Help - scripting! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help - scripting! (
/showthread.php?tid=631499)
Help - scripting! -
Kiko12135 - 30.03.2017
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];
Re: Help - scripting! -
[eLg]elite - 30.03.2017
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.