Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll 3.0
Re: scripts.dll 3.0 [message #212977 is a reply to message #212967] Sun, 13 August 2006 00:49 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
i was wondering...if you if you have the time. to create a simple function to get player infomation without having to put the whole player just a string eg to get the info you would do:

bool team;
int id;
if(get_player_by_id("some_player_name(or part of)", team, id) == -1)
{
  //player doesn't exist...
}
else
{
  //do something with info here
}



and you could define it like:

int get_player_by_id(const char * player_string, bool &tm, int &ID)
{
    //function here
}


i would do this myself but i have no idea to how get player infomation from scripts.dll, i can barely get hooks to work.

this would be very useful to me and other people, the ID in FDS doen't work all the same... it is almost impossible to get a definite id from within a program.
 
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: Random spawns
Next Topic: And the big feature in scripts.dll 3.0 is...
Goto Forum:
  


Current Time: Thu Dec 26 19:46:27 MST 2024

Total time taken to generate the page: 0.01796 seconds