• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Blog Post] Scripting API blog post discussion
#5
I like the use of tags and the naming scheme. I agree that using -1 as invalid value is a better choice.



I myself started using this naming conversation for the gamemode I am writing and I wonder if it will conflict with open.mp scripting API. For example, I have extra parameter to know if I have to update the database or not.?I hope I will not have to convert the whole gamemode in the future.

Code:
Player_SetWeather(playerid, weatherid, bool: update_db)



I also noticed few mistakes:

Code:
Eample

Code:
but found but found none ("_")

Code:
// Just set `z`.

Vehicle_GetRotation(vehicleid, z);

// Set x, y, and z Euler angles.

Vehicle_GetRotation(vehicleid, x, y, z);

// Set w, x, y, and z quaternion angles.

Vehicle_GetRotation(vehicleid, w, x, y, z);
  Reply


Messages In This Thread
Scripting API blog post discussion - by Y_Less - 2020-04-14, 07:00 PM
RE: API blog post discussion - by dreftas - 2020-04-14, 09:47 PM
RE: API blog post discussion - by Polygon - 2020-04-15, 12:24 AM
RE: API blog post discussion - by Riddick - 2020-04-15, 08:25 AM
RE: Scripting API blog post discussion - by George - 2020-04-16, 08:49 AM
RE: Scripting API blog post discussion - by Josh - 2021-01-07, 04:44 PM

Forum Jump: