Problem with loading dialog list items from file
#9

Yeah, now my code looks like this:
pawn Code:
stock CreateCarSchoolDialog(playerid)
{
        new str[255];
        ShowPlayerDList(playerid, -1,  "Car school Questions", "Choose", "Exit");
        for(new qide = 0; qide < MAX_QUESTIONS; qide++)
        {
            format(str, sizeof(str), "%i. %s", questions[qide][qid], questions[qide][question]);
            AddDListItem(playerid, str, questions[qide][qid]);
        }
        ShowPlayerDList(playerid, 9053+1742,  "Car school Questions", "Choose", "Exit");
    return 1;
}
I have also command for it (using zcmd)
pawn Code:
COMMAND:test1(playerid, params[])
    {
    CreateCarSchoolDialog(playerid);
    return 1;
    }
However, now it says SERVER: Uknown command. Why?

On compile, there is no errors/warnings at all.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)