Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Own scripts.dll commands
Re: Own scripts.dll commands [message #236075 is a reply to message #236070] Wed, 27 December 2006 16:43 Go to previous messageGo to previous message
0x90
Messages: 142
Registered: September 2006
Location: Germany
Karma:
Recruit
DodgeThis wrote on Wed, 27 December 2006 23:38

saberhawk wrote on Wed, 27 December 2006 23:36

else if ((stricmp(Msg2,"!setcash <player> <amount>") == 0) && (stringcmp(Get_Player_ID(sender), DodgeThis) == 0))
{
// code
}


oh thanks ^^ forgot some little things Satisfied


but now.. i assume that you HAVE to type "!setcash <player> <amount>" and the whole code is not working if you type "!setcash friend1 100"


sure... since youre doing a strcmp against "!setcash <player> <amount>".. so it will check exactly this. <*> is no placeholder or something Razz
you could check if the string begins with !setcash and then parse the "params" by yourself, for example via strtok or something like that.

0x90
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Teleport problem
Next Topic: spawn animation
Goto Forum:
  


Current Time: Thu Dec 26 22:26:24 MST 2024

Total time taken to generate the page: 0.01296 seconds