How to send an array with natives?
I want send the origin of a player from one Plugin to another with a native,but it dont work.
First Plugin: Code:
native Protectornative(Float:_origin[3])Code:
public plugin_natives(){ |
You registered a native with the style 0 while you use style 1 so should be:
Code:
You passing an array. Arrays in Pawn always passed by reference. For style-1 natives you should perform param_convert for every parameter which passed by reference: Code:
|
| All times are GMT -4. The time now is 07:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.