23.04.2014, 13:38
Everything looks fine to me, but i keep getting that
warning.
I checked if i typed the 'supplydroptext' wrong, but it's the same as the one at the enums.
Код:
\Squads.pwn(776) : warning 213: tag mismatch
I checked if i typed the 'supplydroptext' wrong, but it's the same as the one at the enums.
pawn Код:
public OnObjectMoved(objectid)
{
new sqid, string[132], Float:X, Float:Y, Float:Z;
format(string, sizeof(string), "{FFCC66}SQUAD: The supply-drop has been successfully deployed!");
foreach(Player, x)
{
sqid = squad[x][sid];
if(squadinfo[sqid][supplydropactive])
{
if(squadinfo[sqid][supplydropid] == objectid)
{
GetObjectPos(objectid, X, Y, Z);
format(string, sizeof(string), "{FFCC66}Only squad '%s' can use this supply-drop\nPress 'Y' to access it", squadinfo[sqid][sqname]);
squadinfo[sqid][supplydroptext] = Create3DTextLabel(string, -1, X, Y, Z, 150, 0, 0); //Error line
SendClientMessage(x, -1, string);
}
}
}
return 1;
}