Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ void On_Player_Death???
Re: C++ void On_Player_Death??? [message #432256 is a reply to message #432254] Wed, 07 July 2010 08:00 Go to previous messageGo to previous message
MutateMeh is currently offline  MutateMeh
Messages: 11
Registered: January 2008
Karma:
Recruit
Okay you will maybe laugh with this but.. i tried something with the change_spawn_character and the error seams clear, but i just don't understand what it means xD

Code:
void MutateMeh_Death_Script::Killed(GameObject *obj,GameObject *shooter)
{
if (Commands->Get_Player_Type(obj) == 1)
{
Change_Team(obj, 0);
Change_Spawn_Char(obj, "Nun");
}
}
ScriptRegistrant<MutateMeh_Death_Script> MutateMeh_Death_Script_Registrant("MutateMeh_Death_Script","");


Error:
1>.\gmmain.cpp(1311) : error C2664: 'Change_Spawn_Char' : cannot convert parameter 1 from 'GameObject *' to 'int'
1>        There is no context in which this conversion is possible
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.30729
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Westwood\RenegadeFDS\Server\SSGM Source\tmp\scripts\debug\BuildLog.htm"
1>SSGM - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Hi.
 
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: Lua Plugin V5
Next Topic: distance between two objects c++
Goto Forum:
  


Current Time: Sun Oct 27 12:19:43 MST 2024

Total time taken to generate the page: 0.01102 seconds