Raised This Month: $ Target: $400
 0% 

Script problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 07-19-2010 , 06:48   Re: Script problem
Reply With Quote #2

look the comment: why you handle the plugin after player choose a item?

try to replace all "return PLUGIN_HANDLED" with "return PLUGIN_CONTINUE"
PHP Code:
    if(key == 8) {
         new 
name[17]
         
get_user_name(idname18)
         
cs_reset_user_model (id)
         
ColorChat(0RED"^x04[VIP] ^x03%s^x01  has  resetted his ^x04Admin Model"name)
         return 
PLUGIN_HANDLED // <----- And here
    
}
         
    else {
         return 
PLUGIN_HANDLED // <---- here
    
}

    return 
PLUGIN_HANDLED // <------ here

and use 1 switch not 8 if statements
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 07-19-2010 at 06:51.
mottzi is offline
Send a message via MSN to mottzi
 



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


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