What i want is to do this:
function checkCommand(char* command){
// Check space locations
// Split string into parts
// Compare each part and perform action
}
Such that if i pass "player health 50" as the parameter
the function splits it up into:
1: "player"
2: "health"
3: "50"
and (obviously) add 50 to player health.
My only problem is that i am not really familiar with Lite-C string manipulation :S
I got this working in java. Having a lot of trouble finding the methods to translate into L-C ...