18.03.2010, 02:14
This must really be broken down for you if you don't even know where to place the given code...
I'd search out & learn about strtok as a start
The given code won't work completely alone, but it would be put under OnPlayerCommandText
strtok is a function that can read words between spaces, example:
/changemode mario
strtok used only once will first find '/changemode'
Use it again, it would find 'mario'
Use it once more it would find nothing because nothing is after mario...
It's best just to search out strtok & read up on it though
I'd search out & learn about strtok as a start
The given code won't work completely alone, but it would be put under OnPlayerCommandText
strtok is a function that can read words between spaces, example:
/changemode mario
strtok used only once will first find '/changemode'
Use it again, it would find 'mario'
Use it once more it would find nothing because nothing is after mario...
It's best just to search out strtok & read up on it though