I'm sending a string to the script:
PHP Code:
char className[64] = "prop_dynamic";
int iForceEdictIndex = 1;
cell_t result = Pl_Continue;
IForward->PushString(className);
IForward->PushCellByRef(&iForceEdictIndex);
IForward->Execute(&result);
//IForward= forwards->CreateForward("OnCreateEntity", ET_Event, 2, NULL, Param_String, Param_CellByRef);
Then I change values:
PHP Code:
public Action:OnCreateEntity(String:className[], &iForceEdictIndex)
{
className[0] = 'a';
iForceEdictIndex+=1;
return Plugin_Changed;
}
As a result:
className = "prop_dynamic"
iForceEdictIndex = 2
Why is the first letter in the string is not changed? how can I change it?