19.12.2009, 18:45
Sorry for the title I didn't know what else to call it. But I have a question, how can I get the two values a user inputs using strcmp and check if they're not empty? Lets say I have this..
And lets say the users typed the command /action 2 3 it should return value1 is 2 and value2 is 3. I hope that explains what I want, if not I can try and explain it better .. thank you in advance.
pawn Код:
if(strcmp(cmd, "/action", true) == 0){
if (value1 == 2) {
print("Value1 is 2");
}
else if (value2 == 3) {
print("Value2 is 3.");
} else {
print("Something else.");
}
return 1;
}