18.03.2012, 22:28
Oh, yeah... Didn't see that you marked the line in the code. So you only have to replace that loop with this one:
And it should work.
pawn Код:
for(new h = 0; h < sizeof(ATMs); h++)
{
if(PlayerToPointStripped(1.0, playerid, Dealers[id][_x],Dealers[id][_y],Dealers[id][_z], cx, cy ,cz)) // line 6770
{
new info[28];
ShadInfoBoxShowing[playerid] = 1;
format(info, sizeof(info), "~g~/buyvehicle");
TextDrawSetString(ShadInfoBox[playerid], info);
TextDrawShowForPlayer(playerid, ShadInfoBox[playerid]);
}
}