Hallo,
ich denk mal, dass ich mir Erklärungen sparen kann.
(Zeile 10): error 035: argument type mismatch (argument 3)
Code
static WaypointData[][][] =
{
{"« The Strip »", float:2101.2612, float:1333.6791, float:10.8203}
};
hook OnGameModeInit()
{
for(new i = 0; i < sizeof(WaypointData); i++)
{
CreateWaypoint(WaypointData[i][0], i, WaypointData[i][1], WaypointData[i][2], WaypointData[i][3]);
}
return 1;
}
stock CreateWaypoint(name[], id, Float:posX, Float:posY, Float:posZ)
{
CreateDynamic3DTextLabel(name, -1, posX, posY, posZ-1.0, 50.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 50.0, -1, 0);
WaypointObject[id] = CreateDynamicObject(19947, posX, posY, posZ-2.0, 0.0, 0.0, 0.0, -1, -1, -1, 300.0, 300.0, -1, 0);
WaypointUnlockArea[id] = CreateDynamicCylinder(posX, posY, posZ-2.0, posZ+64.0, 9.0, -1, -1, -1);
WaypointMapicon[id] = CreateDynamicMapIcon(posX, posY, posZ, 20, -1, -1, -1, -1, 150.0, MAPICON_LOCAL, -1, 0);
return 1;
}
Alles anzeigen