Raised This Month: $ Target: $400
 0% 

How to send an array with natives?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 06-21-2006 , 10:11   How to send an array with natives?
Reply With Quote #1

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])

public eCountdown(){
 new Float:origin[3]
 entity_get_vector(1,EV_VEC_origin,origin)
 client_print(0,print_chat,"send:%d,%d,%d",origin[0],origin[1],origin[2])
 Protectornative(origin)
}
Second Plugin:
Code:
public plugin_natives(){
 register_native ( "Protectornative", "Pnative")
}

public Pnative(Float:torigin[]){
 client_print(0,print_chat,"native:%f,%f,%f",torigin[0],torigin[1],torigin[2])
}
I get as Floats 0.0.
__________________
schnitzelmaker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode