PbSetFloat Function

Sets a float or double on a protobuf message.

void PbSetFloat(Handle pb, const char[] field, float value, int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

float value

Float value to set.

int index

Index into repeated field.

Errors

Invalid or incorrect Handle, non-existent field, or incorrect field type.