What could be the problem?
#3

Quote:
Originally Posted by Arca
Посмотреть сообщение
This is the code.

pawn Код:
stock ShowTeam(playerid)
{
    new tempStr[128];

    for(new i = 0; i < MAX_TEAMS; i ++)
    {
        strcat(tempStr, TI[i][name], 128);
        strcat(tempStr, "\n", 128);
    }
    printf("%s", tempStr); // This goes to your server.exe / server.bat and prints on it.
    ListBox(playerid, dChooseTeam, "Choose a team.", tempStr); // Correct define is, ShowPlayerDialog
}
However the ListBox is not shown because it's not being called. Same with the printf function. What could be the problem?

Edit: This is the ListBox function.
pawn Код:
stock ListBox(playerid, dialogid, text[], list[]) ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, text, list, "SELECT", "CLOSE");
This is the TI array.

pawn Код:
new TI[MAX_TEAMS][tInfo] =
{
    { "Blue", { 0.0, 0.0, 0.0, 90.0 }, { 24, 0, 0, 0 }, 28, COLOR_BLUE, 0 },
    { "Red", { 0.0, 0.0, 0.0, 90.0 }, { 26, 0, 0, 0 }, 29, COLOR_RED,  0 }
};
P.S. The function itself(ShowTeam) has been called correctly.
For your printf ~ I don't understand what you want there.

and add' , error logs and information, anything else that might be needed included for your errors.

Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, text, list, "SELECT", "CLOSE");
Reply


Messages In This Thread
What could be the problem? - by Arca - 18.08.2012, 02:36
Re: What could be the problem? - by Arca - 18.08.2012, 19:56
Re: What could be the problem? - by Akira297 - 19.08.2012, 01:41
Re: What could be the problem? - by Arca - 19.08.2012, 01:45
Re: What could be the problem? - by Akira297 - 19.08.2012, 01:47

Forum Jump:


Users browsing this thread: 3 Guest(s)