Page MenuHomeFeedback Tracker

EnString.Split not working properly
New, UrgentPublic

Description

Param1<string> data;
if ( !ctx.Read( data ) ) return;

array<string> messages = new array<string>;
data.param1.Split("/n", messages);
foreach (string m: messages) {
    NotificationSystem.AddNotificationExtended(60, "Whitelist", m, "set:ccgui_enforce image:MapUserMarker");
}

Will result in

Splitting on "/" and not "/n" as expected.
On a side note, would be cool to have newlines working in Widget for 1.06

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

GrosTon1 created this task.Aug 26 2019, 9:09 PM
GrosTon1 updated the task description. (Show Details)
GrosTon1 updated the task description. (Show Details)Aug 26 2019, 9:16 PM