strmid not working (+rep)
#4

Well, when you want to change string, why are you using strmid? I'd suggest you to use strcpy function. (fastest method for copying strings)

pawn Код:
//To the top of your script
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
//Usage: strcpy(dest[], source[], sizeof (dest));

//Then in your code
strcpy(MyVehicle[vehicleid][MyVehOwner], NameOfPlayerToSellCar, sizeof (MyVehicle[]));
NameOfPlayerToSellCar change it for variable of player name that are you going to sell car to.
Reply


Messages In This Thread
strmid not working (+rep) - by ScripteRMKD - 01.06.2014, 13:50
Re: strmid not working (+rep) - by ScripteRMKD - 01.06.2014, 17:06
Re: strmid not working (+rep) - by Eth - 01.06.2014, 17:12
Re: strmid not working (+rep) - by Riwerry - 01.06.2014, 17:14
Re: strmid not working (+rep) - by ScripteRMKD - 02.06.2014, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)