0 Members and 1 Guest are viewing this topic.
function OnPlayerCommand(ID: byte; Text: string): boolean;begin if GetPiece(text,' ',0) = '/fjoin' then WriteConsole(0,GetPiece(text,' ',1) + ' has joined the game', $AA4444);end;
Thanks. Can I ask something, I don't get the GetPiece(Text,' ',1) or the GetPiece(Text,' ',0). What does it mean by 1 or 0.
Does the splitting only use spaces, or does all whitespace count?
var omgarray: array[46..777] of boolean;