01.12.2011, 12:02
So i have code under OnDialogResponse similar to this:
Even if the "new string[128]" is nested under some if's it still returns an error.
What could it be? Please help, thanks.
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);
}
}
What could it be? Please help, thanks.