Unreachable Code!
#4

You've got some extra code on the sscanf line which isn't surrounded by { }.

Replace this:
pawn Код:
if(sscanf(params, "s", value)) SendClientMessage(playerid, -1, "Syntax: /setringtone [url/ringotne]");                              SendClientMessage(playerid, -1, "For Example: http://YOUR_URL_OF_THE_SONG"); return true;
with this:
pawn Код:
if(sscanf(params, "s", value)){
    SendClientMessage(playerid, -1, "Syntax: /setringtone [url/ringotne]");
    SendClientMessage(playerid, -1, "For Example: http://YOUR_URL_OF_THE_SONG");
    return true;
}

Additional:

The unreachable code error basically means the line of code it is referencing cannot be accessed because of something BEFORE that line of code (e.g. you return a value for the callback/function or you mis-use { }).
Reply


Messages In This Thread
Unreachable Code! - by Youice - 24.06.2012, 16:48
Re: Unreachable Code! - by Euan Hughes - 24.06.2012, 16:54
Re: Unreachable Code! - by Youice - 24.06.2012, 17:29
Re: Unreachable Code! - by Badger(new) - 24.06.2012, 21:43
Re: Unreachable Code! - by Kindred - 24.06.2012, 21:50
Re: Unreachable Code! - by Babul - 24.06.2012, 22:19
Re: Unreachable Code! - by Youice - 25.06.2012, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)