Difference between revisions of "WriteConsole"
(Created page with "===From the Scripting Manual=== ''procedure WriteConsole(ID: byte; Text: string; Colour: longint);'' '''Parameter Info:''' ID (Byte): Player ID to write text to. Set to ...") |
Tehbugerz0r (talk | contribs) |
||
Line 4: | Line 4: | ||
'''Parameter Info:''' | '''Parameter Info:''' | ||
ID (Byte): Player ID to write text to. Set to 0 to write to all players! | ID (Byte): Player ID to write text to. Set to 0 to write to all players! | ||
− | Text (String): Text to be written to the console | + | Text (String): Text to be written to the console. |
Colour (Longint): Colour the text should be when drawn to the console. | Colour (Longint): Colour the text should be when drawn to the console. | ||
'''Description:''' | '''Description:''' | ||
− | This function will add text to the players(ID) console | + | This function will add text to the players(ID) console. |
Set ID to 0 to write the text to ALL Players in the server! | Set ID to 0 to write the text to ALL Players in the server! | ||
Line 14: | Line 14: | ||
<source lang="pascal">begin | <source lang="pascal">begin | ||
WriteConsole(0,'Pickled Onions are nice!',$EE81FAA1); | WriteConsole(0,'Pickled Onions are nice!',$EE81FAA1); | ||
− | // Will draw: " | + | // Will draw: "Pickled Onions are nice!" to ALL players consoles. |
// $EE81FAA1 is the colour, in AA RR GG BB format. (Alpha, Red, Green,Blue); | // $EE81FAA1 is the colour, in AA RR GG BB format. (Alpha, Red, Green,Blue); | ||
end; | end; |
Revision as of 09:24, 10 September 2012
From the Scripting Manual
procedure WriteConsole(ID: byte; Text: string; Colour: longint); Parameter Info: ID (Byte): Player ID to write text to. Set to 0 to write to all players! Text (String): Text to be written to the console. Colour (Longint): Colour the text should be when drawn to the console. Description: This function will add text to the players(ID) console. Set ID to 0 to write the text to ALL Players in the server!
Examples
begin
WriteConsole(0,'Pickled Onions are nice!',$EE81FAA1);
// Will draw: "Pickled Onions are nice!" to ALL players consoles.
// $EE81FAA1 is the colour, in AA RR GG BB format. (Alpha, Red, Green,Blue);
end;