PHP код:
CreateMapIcon()
{
for(new i = 0; i <= sizeof(iMapIcon) - 1; i++)
SetPlayerMapIcon(playerid, iMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0, MAPICON_LOCAL);//Linha do Erro:
}
PHP код:
enum MapIcon
{
IconID,
Float:X,
Float:Y,
Float:Z,
modelo
}
new const iMapIcon[][MapIcon] =
{
{0, -2651.9697, 639.9350, 14.4531, 22},
{1, -2208.6121, -2286.5898, 30.6250, 22},
{2, 1172.3951, -1322.4260, 15.4010, 22},
{3, 2032.1482, -1410.4672, 17.1315, 22},
{4, 1242.1888, 326.6263, 19.7555, 22},
{5, -320.5170,1049.1122,20.3403, 22},
{6, 1607.0284,1816.6486,10.8203, 22},
{7, -1514.7341,2519.8289,56.0174, 22}
};
// --- > НCONES Pawn
CreateMapIcon()
{
for(new i = 0; i <= sizeof(iMapIcon) - 1; i++)
SetPlayerMapIcon(playerid, iMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0, MAPICON_LOCAL);
}
PHP код:
CreateMapIcon(playerid)
{
for(new i = 0; i <= sizeof(iMapIcon) - 1; i++)
SetPlayerMapIcon(playerid, iMapIcon[i][IconID], iMapIcon[i][X], iMapIcon[i][Y], iMapIcon[i][Z], iMapIcon[i][modelo], 0, MAPICON_LOCAL);
}