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:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- Chat
-- Tech
-- Life
-- Art
-- Programming
open.mp
-- Development Updates
-- Questions and Suggestions
SA-MP
-- General Discussions
-- Videos and Screenshots
-- Support
-- Pawn Scripting
-- Tutorials
-- Releases
---- Plugins
---- Libraries
---- Filterscripts
---- Gamemodes
---- Maps
-- Advertisements
Other languages
-- Spanish/Español
---- Programación
---- Discusión GTA SA Multijugador
---- Mods
---- Offtopic
---- Juegos
-- Portuguese/Português
-- Russian/Русский
-- Italian/Italiano
-- Dutch/Nederlands
-- German/Deutsch
-- Romanian/Română
-- Ex-Yu
-- Polish/Polski
---- Ogólne
---- Serwery
---- Skryptowanie
---- Filmiki i zdjęcia
-- Lithuanian/Lietuviškas
-- French/Français
-- Hungarian/Magyar
-- Hindi/Urdu
-- Turkish
-- Other
Linear Mode
Threaded Mode