12.06.2014, 23:02
(EDIT): I've found an issue caused and linked to declaring several new variables on a same line.
The following code (for example) will compile just fine:
However when changed to...
The error:
Will appear, all because I made several new variables along with "new string[128]".
The following code (for example) will compile just fine:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
new string[128];
return 1;
}
case 2:
{
new string[128];
return 1;
}
}
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
new DB:database, DBResult:result[2], dialog[1650], string[128], value[2][64], placeholder[3], target, time;
return 1;
}
case 2:
{
new string[128];
return 1;
}
}
return 1;
}
Код:
error 021: symbol already defined: "string"