Skip to content

Commit 6fa585b

Browse files
authored
Merge pull request #54 from NexiusTailer/master
Various tweaks for omp-stdlib
1 parent 5ee4da0 commit 6fa585b

File tree

5 files changed

+9
-28
lines changed

5 files changed

+9
-28
lines changed

_open_mp.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public const __OPEN_MP_VERSION = 0;
139139
#if __pawn_build >= 11
140140
#define OPEN_MP_TAGS {LANDING_GEAR_STATE, T_CONNECTION_STATUS, T_CP_TYPE, T_WEAPON, T_PLAYER_MARKERS_MODE, T_DIALOG_STYLE, T_HTTP_METHOD, T_HTTP_ERROR, T_DOWNLOAD_REQUEST, T_SELECT_OBJECT, T_OBJECT_MATERIAL_SIZE, T_OBJECT_MATERIAL_TEXT_ALIGN, T_EDIT_RESPONSE, T_PLAYER_STATE, T_SPECIAL_ACTION, T_FIGHT_STYLE, T_WEAPONSKILL, T_WEAPONSTATE, T_KEY, T_CAM_MODE, T_MAPICON, T_SPECTATE_MODE, T_PLAYER_RECORDING_TYPE, T_FORCE_SYNC, T_CLICK_SOURCE, T_BULLET_HIT_TYPE, T_TEXT_DRAW_FONT, T_TEXT_DRAW_ALIGN, T_VARTYPE, T_CARMODTYPE, T_VEHICLE_MODEL_INFO, T_VEHICLE_PANEL_STATUS, T_VEHICLE_DOOR_STATUS, T_VEHICLE_LIGHT_STATUS, T_VEHICLE_TYRE_STATUS, T_WEAPON_SLOT, Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _}
141141
#else
142-
#define OPEN_MP_TAGS {T_WEAPON, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _}
142+
#define OPEN_MP_TAGS {Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _}
143143
#endif
144144
#else // if defined WEAK_TAGS
145145
#define __TAG(%0) t_%0
@@ -153,7 +153,7 @@ public const __OPEN_MP_VERSION = 0;
153153
// but not for YSI internal tags. Not having them here would be a change
154154
// for many existing scripts that didn't previously have to specify those
155155
// tags. Having more here isn't a problem, so they're just all here.
156-
#define OPEN_MP_TAGS {LANDING_GEAR_STATE, Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _}
156+
#define OPEN_MP_TAGS {Bit, Bitmap, XML, XMLEntry, Group, INI, Language, Style, DB, DBResult, Menu, Text, PlayerText, Text3D, PlayerText3D, File, Float, CUSTOM_TAG_TYPES, _}
157157
#else
158158
// I say it isn't a problem - the old compiler is limited to only 16 tags,
159159
// thus `CUSTOM_TAG_TYPES` is limited to eight tags. To keep the numbers

a_npc.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#endinput
33
#endif
44

5-
#error open.mp doesn't yet support NPC scripts.
5+
#error open.mp doesn't support NPC scripts.

omp_core.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ native bool:SendDeathMessage(killer, killee, weapon);
697697
* <b><c>0</c></b>: The function failed to execute. The weapon specified does not exist.
698698
* </returns>
699699
*/
700-
native bool:GetWeaponName(WEAPON:weaponid, weapon[], len = sizeof (weapon));
700+
native GetWeaponName(WEAPON:weaponid, weapon[], len = sizeof (weapon));
701701

702702
/**
703703
* <library>omp_core</library>

omp_npc.inc

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ native bool:NPC_AddPointToPath(pathid, Float:x, Float:y, Float:z, Float:stopRang
10431043
/**
10441044
* <library>omp_npc</library>
10451045
*/
1046-
native bool:NPC_RemovePointFromPath(pathid, point_index);
1046+
native bool:NPC_RemovePointFromPath(pathid, pointIndex);
10471047

10481048
/**
10491049
* <library>omp_npc</library>
@@ -1058,7 +1058,7 @@ native NPC_GetPathPointCount(pathid);
10581058
/**
10591059
* <library>omp_npc</library>
10601060
*/
1061-
native bool:NPC_GetPathPoint(pathid, point_index, &Float:x, &Float:y, &Float:z, &Float:stopRange);
1061+
native bool:NPC_GetPathPoint(pathid, pointIndex, &Float:x, &Float:y, &Float:z, &Float:stopRange);
10621062

10631063
/**
10641064
* <library>omp_npc</library>
@@ -1130,7 +1130,7 @@ native bool:NPC_GetNodeInfo(nodeid, &vehnodes, &pednodes, &navinode);
11301130
/**
11311131
* <library>omp_npc</library>
11321132
*/
1133-
native bool:NPC_PlayNode(npcid, nodeid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:speed = NPC_MOVE_SPEED_AUTO, Float:radius = 0.0, bool:setangle = true);
1133+
native bool:NPC_PlayNode(npcid, nodeid, NPC_MOVE_TYPE:moveType = NPC_MOVE_TYPE_JOG, Float:speed = NPC_MOVE_SPEED_AUTO, Float:radius = 0.0, bool:setAngle = true);
11341134

11351135
/**
11361136
* <library>omp_npc</library>
@@ -1258,22 +1258,3 @@ forward OnNPCFinishMovePath(npcid, pathid);
12581258
* <library>omp_npc</library>
12591259
*/
12601260
forward OnNPCFinishMovePathPoint(npcid, pathid, pointid);
1261-
1262-
/*
1263-
native # Streamer Support();
1264-
native Streamer Support(
1265-
native ================================(
1266-
native
1267-
*/
1268-
1269-
#if defined _streamer_included
1270-
stock NPC_SetSurfingDynamicObject(npcid, objectid)
1271-
{
1272-
return NPC_SetSurfingPlayerObject(npcid, Streamer_GetItemInternalID(npcid, STREAMER_TYPE_OBJECT, objectid));
1273-
}
1274-
1275-
stock NPC_GetSurfingDynamicObject(npcid)
1276-
{
1277-
return Streamer_GetItemStreamerID(npcid, STREAMER_TYPE_OBJECT, NPC_GetSurfingPlayerObject(npcid));
1278-
}
1279-
#endif

omp_variable.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ native GetSVarsUpperIndex();
233233
* <seealso name="GetSVarFloat" />
234234
* <seealso name="GetSVarString" />
235235
*/
236-
native bool:GetSVarNameAtIndex(index, output[], size = sizeof (output));
236+
native GetSVarNameAtIndex(index, output[], size = sizeof (output));
237237

238238
/**
239239
* <library>omp_variable</library>
@@ -418,7 +418,7 @@ native GetPVarsUpperIndex(playerid);
418418
* <seealso name="GetPVarFloat" />
419419
* <seealso name="GetPVarString" />
420420
*/
421-
native bool:GetPVarNameAtIndex(playerid, index, output[], size = sizeof (output));
421+
native GetPVarNameAtIndex(playerid, index, output[], size = sizeof (output));
422422

423423
/**
424424
* <library>omp_variable</library>

0 commit comments

Comments
 (0)