SA-MP Forums Archive
Getting a String into Dini..? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting a String into Dini..? (/showthread.php?tid=219475)



Getting a String into Dini..? - Luis- - 01.02.2011

Well, I want to set a Vehicles License Plate to save within my Vehicles Folder so could I get an example on how to set a String in to Dini?


Re: Getting a String into Dini..? - Fj0rtizFredde - 01.02.2011

You mean like this or?
pawn Код:
//Example:
dini_Set(file, "VehiclePlate", "ForSale");



Re: Getting a String into Dini..? - Luis- - 01.02.2011

Thanks, So it would be something like this?
pawn Код:
SetVehicleNumberPlate(dini_Int(file, "Model"), dini_Int(file, "Plate"));
even though it can't be that as I do get an Error.


Re: Getting a String into Dini..? - Fj0rtizFredde - 01.02.2011

You should use "Get" for strings
pawn Код:
SetVehicleNumberPlate(dini_Int(file, "Model"), dini_Get(file, "Plate"));



Re: Getting a String into Dini..? - [L3th4l] - 01.02.2011

pawn Код:
SetVehicleNumberPlate(vehicleid, dini_get(file, "Plate"));



Re: Getting a String into Dini..? - Luis- - 01.02.2011

Fixed it