If you make it a native with style 0, you can see how many parameters was sent and react to that.
Code:
native parse_resp_data(data[], ...)
// ...
public plugin_natives()
register_native("parse_resp_data", "native_parse_resp_data")
public native_parse_resp_data(PluginID, NumParams) {
// ...
switch ( NumParams ) {
case 2: server_print("Using message")
case 1: server_print("Not using message")
default: server_print("Failure");
}
//...
}
Another option is to set the default value to something weird that you wouldn't find in whatever the user enters and checking if the parameter is equal to that weird value or empty.
Code:
stock parse_resp_data(data[], message[] = "^1") {
// ...
if ( message[0] != '^1' )
server_print("Using message")
else
server_print("Not using message")
// ...
I think I understood you correctly but I'm not really sure.
On a side note, I saw your latest post and started making an API for RESP. But if you do it instead, that's probably for the best.
Add me to Steam if you need someone to bounce ideas with.
http://steamcommunity.com/id/IIlllIllIlll
__________________