All pastes #419870 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-01 18:16 UTC
rendered paste body
stock GetProp_String(propid, virtual_machine=0)
{
    new propstring[255];
    getproperty(virtual_machine,"",propid,propstring);
    strunpack(propstring,propstring);
    return propstring;
}

// don't work
stock GetPlayerProp_String(playerid, propid, virtual_machine=0)
{
    return GetProp_String(PlayerPropID(playerid,propid),virtual_machine);
}

// work
stock GetPlayerProp_String(playerid, propid, virtual_machine=0)
{
    new propstring[255];
    getproperty(virtual_machine,"",PlayerPropID(playerid,propid),propstring);
    strunpack(propstring,propstring);
    return propstring;
}