[HELP!] warning 225: unreachable code -
DarkFlame88 - 30.07.2018
Hello everyone, I'm an Italian boy who recently (2-3 days) I'm starting to work (or better to edit) a fairly old Italian Roleplay Gamemode. The reason for this topic is one, when I compile the Gamemode gives me the following error: "warning 225: unreachable code" more precisely this
"C: \ Users \ Francesco \ Desktop \ Blaine County \ gamemodes \ roleplay.pwn (25789): warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning. "
While this is the line of the problem:
{
Yes .. I'm not kidding, this staple gives me error and I can not fill out the Gamemode. Please help me
Sorry for my english.
Re: [HELP!] warning 225: unreachable code -
Exhibit - 30.07.2018
post the code.
Re: [HELP!] warning 225: unreachable code -
RJTabish - 30.07.2018
Show Us 25789 line
Re: [HELP!] warning 225: unreachable code -
DarkFlame88 - 30.07.2018
Quote:
Originally Posted by RJTabish
Show Us 25789 line
|
Line 25789 is this: {
While this is all the code:
format (string, sizeof (string), "~ y ~% d% s ~ n ~~ g ~ | ~ w ~% d:% d:% d ~ g ~ |", day, mtext, hour + 1, minuite , second);
GameTextForPlayer (playerid, string, 5000, 1);
}
return 1;
}
}
* return 1;
* {
SendClientMessage (playerid, COLOR_RED, "{ff0000} [ERROR] {ff0000} {FFFFFF} To use the commands, you must log in. {FFFFFF}");
SendClientMessage (playerid, COLOR_RED, "{ff0000} [INFO] {ff0000} {FFFFFF} Enter the password to log in or register. {FFFFFF}");
}
SendClientMessage (playerid, COLOR_LIGHTBLUE, "{ff0000} [ERROR] {ff0000} {FFFFFF} Non-existent command, Type {808080} / help {808080} {FFFFFF} for the list. {FFFFFF}");
return 1;
* }
Re: [HELP!] warning 225: unreachable code -
RODELA - 30.07.2018
Use this
PHP код:
format (string, sizeof (string), "~ y ~% d% s ~ n ~~ g ~ | ~ w ~% d:% d:% d ~ g ~ |", day, mtext, hour + 1, minuite , second);
GameTextForPlayer (playerid, string, 5000, 1);
}
return 1;
}
}
return 1;
{
SendClientMessage (playerid, COLOR_RED, "{ff0000} [ERROR] {ff0000} {FFFFFF} To use the commands, you must log in. {FFFFFF}");
SendClientMessage (playerid, COLOR_RED, "{ff0000} [INFO] {ff0000} {FFFFFF} Enter the password to log in or register. {FFFFFF}");
}
SendClientMessage (playerid, COLOR_LIGHTBLUE, "{ff0000} [ERROR] {ff0000} {FFFFFF} Non-existent command, Type {808080} / help {808080} {FFFFFF} for the list. {FFFFFF}");
return 1;
}
why you put that "*" thing?
Re: [HELP!] warning 225: unreachable code -
Rufio - 30.07.2018
We can't help you if you keep cropping your code, I can assure you noone will steal your code. It looks like a code from early 2010 at best. I also don't recommend editing an old gamemode as it'll give you outdated knowledge, it's better to download a new one to start out and/or create your own one.
Re: [HELP!] warning 225: unreachable code -
Jing_Chan - 30.07.2018
You've got an additional
} bracket somewhere restricting your script from accessing that code.