Can't figure out the error:
#1

pawn Код:
case DIALOG_MAIN_MENU_CREATE_CHARACTER_NAME:
        {
            new firstname[MAX_PLAYER_NAME], lastname[MAX_PLAYER_NAME];
            if(response)
            {
                if(strlen(inputtext) >= 1 && strlen(inputtext) <= MAX_PLAYER_NAME)
                {
                    if(!CharacterExists(InsertPlayerUnderscoreString(inputtext)))
                    {
                        if(RPName(InsertPlayerUnderscoreString(inputtext), firstname, lastname))
                        {
                            SetPVarString(playerid,"TEMP_C_NAME",InsertPlayerUnderscoreString(inputtext)); //2501
                        }
                        else
                        {
                            ShowPlayerDialog(playerid,DIALOG_MAIN_MENU_CREATE_CHARACTER_NAME,DIALOG_STYLE_INPUT,"Master Account - New Character","The character name you entered is not a valid roleplay name.\n(Firstname Lastname format).","Continue","Go Back");
                        }
                    }
                    else
                    {
                        ShowPlayerDialog(playerid,DIALOG_MAIN_MENU_CREATE_CHARACTER_NAME,DIALOG_STYLE_INPUT,"Master Account - New Character","A character with that name is already registered, please choose another name.\n(Firstname Lastname format).","Continue","Go Back");
                    }
                }
                else
                {
                    ShowPlayerDialog(playerid,DIALOG_MAIN_MENU_CREATE_CHARACTER_NAME,DIALOG_STYLE_INPUT,"Master Account - New Character","What do you want your character to be called?\n(Firstname Lastname format).","Continue","Go Back");
                }
                new query[64];
                CreateCharacter(playerid, //2526
                GetPVarStringEx(playerid, "TEMP_C_NAME"),
                format(query, sizeof(query), "UPDATE `PlayerCharacter` WHERE `SpawnPoint` = '%s'", Character[playerid][SpawnPoint],
                mysql_query(1, query);
               
               
                DeletePVar(playerid, "TEMP_C_NAME");
                ShowMenuDialog(playerid);
            }
            else
            {
                ShowPlayerDialog(playerid, DIALOG_MAIN_MENU_CREATE_CHARACTER_NAME, DIALOG_STYLE_LIST, "Master Account - New Character","What do you want your character to be called?\n(Firstname Lastname format).","Continue","Go Back");
            }   // Go back.
        }
    } //2540
    return 1;
}
pawn Код:
(2526 -- 2540) : error 001: expected token: ",", but found ";"
Reply


Messages In This Thread
Can't figure out the error: - by AMouldyLemon - 23.06.2014, 19:48
Re: Can't figure out the error: - by Konstantinos - 23.06.2014, 19:50
Re: Can't figure out the error: - by AMouldyLemon - 23.06.2014, 20:07
Re: Can't figure out the error: - by AMouldyLemon - 23.06.2014, 20:40
Re: Can't figure out the error: - by AMouldyLemon - 24.06.2014, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)