Raised This Month: $ Target: $400
 0% 

Help needed for my plugin!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 11-09-2005 , 08:14  
Reply With Quote #1

hmm.. im not sure what u want but i think that will do the job

Code:
public saylol(id) {     if (get_cvar_num("pa_lol")==1)//to display message     {     set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)     show_hudmessage(id, "I said lol ")     return PLUGIN_HANDLED     } return PLUGIN_HANDLED }

you need to add {} after if.. to include all the commands after it inside the if... (like in a function)
haimmaik is offline
Reply



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 23:36.


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