Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » My First Code
Re: My First Code [message #268517 is a reply to message #268476] Sun, 24 June 2007 08:10 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
You cannot change the charater to a w3d file.

Change_Character(obj,"c_ag_gdi_mp");

Should be:

Commands->Set_Model(obj, "c_ag_gdi_mp");


We don't know how you've set "Move" so we can't tell you is the teleport will actully work.

if(stristr(Msg2, "!<command>") == 0 && strcmp(Get_Player_Name_By_ID(ID), "<player name>") == 0)
{
	if (stricmp(Get_Player_Name_By_ID(ID),"<nick>") == 0) {

Should be:
if(stristr(Msg2, "!<command>") == 0 && strcmp(Get_Player_Name_By_ID(ID), "<player name>") == 0)
{

After changing that you will need to remove a right brace "}" from the block.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how can i do these
Next Topic: Editing Existing Code
Goto Forum:
  


Current Time: Mon Dec 23 11:54:40 MST 2024

Total time taken to generate the page: 0.01249 seconds