warning 225: unreachable code
#1

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
Reply
#2

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.
Reply
#3

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);
Reply
#4

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" ?
Reply
#5

OnPlayerSpawn
but it should work because it asks what class you whant
Reply
#6

help please fast!
Reply
#7

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
}
Reply
#8

does not fix it :/
Reply
#9

Quote:
Originally Posted by [A]ndrei
Посмотреть сообщение
does not fix it :/
Same line warning?
Reply
#10

ya i think something wrong with that line?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)