What could be wrong?
#1

So i have code under OnDialogResponse similar to this:

pawn Код:
switch(dialogid)
{
    case SOME_DIALOG:
    {
        new string[128];
        format(string, sizeof(string), "Hello, your ID is %d." playerid);
        SendClientMessage(playerid, COLOR_SOMETHING, string);
    }

    case SOME_OTHER_DIALOG:
    {
        new string[128]; // <- error 021: symbol already defined
        format(string, sizeof(string), "Hello, your ID is %d." playerid);
        SendClientMessage(playerid, COLOR_SOMETHING, string);
    }
}
Even if the "new string[128]" is nested under some if's it still returns an error.

What could it be? Please help, thanks.
Reply


Messages In This Thread
What could be wrong? - by Whizion - 01.12.2011, 12:02
Re: What could be wrong? - by niels44 - 01.12.2011, 12:02
Re: What could be wrong? - by Scenario - 01.12.2011, 12:15
Re: What could be wrong? - by Whizion - 01.12.2011, 12:22
Re: What could be wrong? - by MP2 - 01.12.2011, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)