Getting a String into Dini..?
#1

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?
Reply
#2

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

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.
Reply
#4

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

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

Fixed it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)