PHP Code:
//Get convar as string
new String:buffer[128];
GetConVarString(somehandle, buffer, sizeof(buffer));
//Set convar as string
SetConVarString(somehandle, "some string");
//Get convar as int
new value = GetConVarInt(somehandle);
//Set convar as int (e.g. 100)
SetConVarInt(somehandle, 100);
//Get convar as float
new Float:value2 = GetConVarFloat(somehandle);
//Set convar as float, (e.g. 100.0)
SetConVarFloat(somehandle, 100.0);
//For completion's sake, get convar as boolean
new bool:value3 = GetConVarBool(somehandle);
//Set convar as boolean (e.g. true)
SetConVarBool(somehandle, true);
__________________