Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] playerid is 0-based, but vehicleid is 1-based, what gives?

 
  • 0 Vote(s) - 0 Average
Pawn playerid is 0-based, but vehicleid is 1-based, what gives?
Aerotactics
Offline

Burgershot Member
Posts: 13
Threads: 7
Joined: Jul 2019
Reputation: 0
Location: San Francisco, CA
#1
2019-07-10, 01:30 AM
Title.
Cada
Offline

Burgershot Member
Posts: 11
Threads: 2
Joined: Apr 2019
Reputation: 0
#2
2019-07-10, 05:51 AM
it can handle various error or not expected flow with 0, INVLID_VEHICLE_ID.
not created for train in ground, invalid model, limit reached, etc...


so, i think that player error is not various as vehicle. so, 0 is used for player not error handling.
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#3
2019-07-13, 06:39 PM
No real reason. They should be consistent, but they aren't.
Freaksken
Offline

open.mp Developer

Posts: 80
Threads: 4
Joined: Feb 2019
Reputation: 6
Location: Belgium
#4
2019-07-14, 09:54 AM
Objects and player objects also start at ID 1.
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode