Raised This Month: $ Target: $400
 0% 

Wie funktionieren Natives ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lgund
Senior Member
Join Date: Jul 2009
Location: Berlin
Old 04-29-2011 , 08:57   Wie funktionieren Natives ?
#1

Ich versuche ein Plugin zu schreiben. Das Hauptplugin macht eine Datenbank abfrage über SELECT Befehl und nun versuche ich diese Daten ueber ein Native in ein Nebenplugin zu schleusen.

GEHT DAS ??

Wenn ja wie ? habe hier ein Beispiel von AmxBans:

Code:
public plugin_natives() {
    register_library("AMXBansCore")
    
    register_native("amxbans_get_admin_nick","native_amxbans_get_nick")
}
Code:
public native_amxbans_get_nick() {
    
    new id = get_param(1)
    new len= get_param(3)
    
    set_array(2,g_szAdminNick[id],len)
}
Allerdings verstehe ich auch nicht get_param. Woher kommt der ??

INFO: http://www.amxmodx.org/funcwiki.php?go=func&id=827
__________________
You need help on Coding ?? Look on my Homepage: http://First-Coder.de/
You want FUN in Counter-Strike ;) ?? Look on my Community:
http://deathmanns.first-coder.de/
lgund is offline
Send a message via MSN to lgund Send a message via Skype™ to lgund
 



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:31.


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