IsValidPlayerObject

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:57, 4 September 2009
Mikep (Talk | contribs)

← Previous diff
Revision as of 01:47, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{Title}} 
{{Description|Checks if the given objectid is valid for the given player.}} {{Description|Checks if the given objectid is valid for the given player.}}
Line 37: Line 36:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:IsValidPlayerObject]]

Revision as of 01:47, 1 February 2014



Description:

Checks if the given objectid is valid for the given player.


Parameters:
(playerid, objectid)
playeridThe player you associated this object to.
objectidThe objectid you want to validate.


Return Values:

1 if the object exists, 0 if not.


if(IsValidPlayerObject(playerid, objectid)) DestroyPlayerObject(playerid, objectid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


In other languages