[Help]Noob question (strcmp)
#1

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..

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;
}
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.
Reply


Messages In This Thread
[Help]Noob question (strcmp) - by zilvernex - 19.12.2009, 18:45
Re: [Help]Noob question (strcmp) - by M4S7ERMIND - 19.12.2009, 19:13
Re: [Help]Noob question (strcmp) - by SlashPT - 19.12.2009, 19:37
Re: [Help]Noob question (strcmp) - by Rzzr - 19.12.2009, 19:44
Re: [Help]Noob question (strcmp) - by SlashPT - 19.12.2009, 19:47
Re: [Help]Noob question (strcmp) - by zilvernex - 20.12.2009, 03:53

Forum Jump:


Users browsing this thread: 1 Guest(s)