Raised This Month: $ Target: $400
 0% 

help to return an array through a native


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 03-20-2011 , 06:13   help to return an array through a native
Reply With Quote #1

i get a svc_bad error when using this native
please help me fix it
PHP Code:
register_native("zpnm_get_user_class_name""native_get_user_class_name"1
PHP Code:
public native_get_user_class_name(id)
{
    static class[
32]
    
    if (
g_zombie[id]) // zombies
    
{
        if (
g_nemesis[id])
            
formatex(class, charsmax(class), "%L"id"CLASS_NEMESIS")
        else
            
copy(class, charsmax(class), g_zombie_classname[id])
    }
    else 
// humans
    
{
        if (
g_survivor[id])
            
formatex(class, charsmax(class), "%L"id"CLASS_SURVIVOR")
        if (
g_sniper[id])
            
formatex(class, charsmax(class), "%L"id"CLASS_SNIPER")
        if (!
g_survivor[id] && !g_sniper[id])
            
copy(class, charsmax(class), g_human_classname[id])
    }
    
    return class;

__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
 



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 14:32.


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