Raised This Month: $ Target: $400
 0% 

This plugin crashes my server (natives help!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-19-2016 , 11:43   Re: This plugin crashes my server (natives help!)
Reply With Quote #9

Code:
public native_get_user_level(id)   {     return g_iLevel[id] } public native_set_user_level(id, amount)   {     g_iLevel[id] = amount }
To make this style 0 you do this:
Code:
public native_get_user_level(PluginID, NumParams) {     return g_iLevel[get_param(1)] } public native_set_user_level(PluginID, NumParams) {     g_iLevel[get_param(1)] = get_param(2) }
__________________

Last edited by Black Rose; 05-19-2016 at 11:44.
Black Rose 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 18:32.


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