Error help
#5

Let me explain you in a better way. What you did is just something like this
pawn Код:
public OnPlayerSpawn(playerid)
{
    {
        ShowPlayerDialog(playerid, DIALOG_CLASSELECT, DIALOG_STYLE_LIST, "Class Selection", "{00C0FF}Soldier\n{00C0FF}Sniper\n{00C0FF}Engineer\n{00C0FF}JetTrooper\n{00C0FF}Pilot\n{00C0FF}Spy\n{00C0FF}Ranger\n{00C0FF}Elite Ranger", "Select", "Close");
    }
    return 1;
}
Which in English means something like: "On Player Spawn do do Show Player Dialog" instead of "On Player Spawn do Show Player Dialog". You can make something like this to add more brackets:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(.....)
    {
        ShowPlayerDialog(playerid, DIALOG_CLASSELECT, DIALOG_STYLE_LIST, "Class Selection", "{00C0FF}Soldier\n{00C0FF}Sniper\n{00C0FF}Engineer\n{00C0FF}JetTrooper\n{00C0FF}Pilot\n{00C0FF}Spy\n{00C0FF}Ranger\n{00C0FF}Elite Ranger", "Select", "Close");
    }
    return 1;
}
And that's why you got errors.
Reply


Messages In This Thread
Error help - by FireWarrior101 - 04.08.2013, 09:24
Re: Error help - by CutX - 04.08.2013, 09:33
Re: Error help - by FireWarrior101 - 04.08.2013, 09:55
Re: Error help - by CutX - 04.08.2013, 09:58
Re: Error help - by Necip - 04.08.2013, 10:07
Re: Error help - by FireWarrior101 - 04.08.2013, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)