warning 225: unreachable code -
[A]ndrei - 07.09.2012
pawn Код:
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Private Class\nSniper Class\nEngineer Class\nMedic Class\nPilot Class\nSpy Class", "Choose","");
please help this is the line if you need something else please ask.
Код:
warning 225: unreachable code
Re: warning 225: unreachable code -
kbalor - 07.09.2012
Seems fine nothings wrong. I guess there is something wrong with the next line or before that line.
EDIT: I have tested that code and its working.
Re: warning 225: unreachable code -
[A]ndrei - 07.09.2012
hmm maybe i should post lines after and before here you go
pawn Код:
TextDrawSetShadow(td_fuel[playerid],3); //dropping the shadow
return 1;
//Class Syste,
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Private Class\nSniper Class\nEngineer Class\nMedic Class\nPilot Class\nSpy Class", "Choose","");//THIS IS THE LINE THX FOR HELP
if(gPlayerClass[playerid] == PRIVATE)//This is for the First soldier class.
{
TogglePlayerControllable(playerid, 1);
Re: warning 225: unreachable code -
kbalor - 07.09.2012
Quote:
Originally Posted by [A]ndrei
hmm maybe i should post lines after and before here you go
pawn Код:
TextDrawSetShadow(td_fuel[playerid],3); //dropping the shadow return 1; //Class Syste, ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Private Class\nSniper Class\nEngineer Class\nMedic Class\nPilot Class\nSpy Class", "Choose","");//THIS IS THE LINE THX FOR HELP
if(gPlayerClass[playerid] == PRIVATE)//This is for the First soldier class. { TogglePlayerControllable(playerid, 1);
|
EDIT: Did you put this in a Callback?
Код:
"ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Private Class\nSniper Class\nEngineer Class\nMedic Class\nPilot Class\nSpy Class", "Choose","");//THIS IS THE LINE
THX FOR HELP" ?
Re: warning 225: unreachable code -
[A]ndrei - 07.09.2012
OnPlayerSpawn
but it should work because it asks what class you whant
Re: warning 225: unreachable code -
[A]ndrei - 07.09.2012
help please fast!
Re: warning 225: unreachable code -
kbalor - 07.09.2012
Quote:
Originally Posted by [A]ndrei
OnPlayerSpawn
but it should work because it asks what class you whant
|
Try to move that on top. Just to know if that line or the other line has the problem. And post the warning line if its the same as before.
pawn Код:
public OnPlayerSpawn(playerid)
{
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Private Class\nSniper Class\nEngineer Class\nMedic Class\nPilot Class\nSpy Class", "Choose","");//THIS IS THE LINE THX FOR HELP
//your codes below
}
Re: warning 225: unreachable code -
[A]ndrei - 07.09.2012
does not fix it :/
Re: warning 225: unreachable code -
kbalor - 07.09.2012
Quote:
Originally Posted by [A]ndrei
does not fix it :/
|
Same line warning?
Re: warning 225: unreachable code -
[A]ndrei - 07.09.2012
ya i think something wrong with that line?