Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts Part 3
Re: Scripts Part 3 [message #267567 is a reply to message #267553] Wed, 20 June 2007 15:21 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
joe937465 wrote on Wed, 20 June 2007 16:52

i aslo try t make a simple ! command then pasges u with a text what did i do wrong?



Here is a simple chat hook addition that when the player says "!testmsg" the server will send a message to the server saying "hey man, don't test me".

if (stricmp(Msg2,"!testmsg") == 0)  
{
        char Text[256];
	sprintf(Text,"msg hey man, don't test me");
	Console_Input(Text);
			}



You are basically missing the "Char Text[256];"



[Updated on: Wed, 20 June 2007 15:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GB
Next Topic: SSGM, previously SSAOW, Version 2.0
Goto Forum:
  


Current Time: Sat Dec 21 18:27:47 MST 2024

Total time taken to generate the page: 0.01308 seconds