Raised This Month: $ Target: $400
 0% 

Could someone pleaseeeeeeeeee tell me whats wrong with this?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
philman213
Member
Join Date: Feb 2005
Location: WA
Old 02-17-2005 , 18:23   Re: Could someone pleaseeeeeeeeee tell me whats wrong with t
Reply With Quote #3

Quote:
Originally Posted by Stealth Penguin
This is part of my plugin and the whole thing compiles fine with no errors but won't do anything when I use it in my menu in game... the menu part functions perfectly but I can't seem to get this set_user_godmode command to work correctly (and yes I have all the includes).
Please check it over for me? Any advice would be greatly appreciated.
Code:
public TGOMenuCommand(id,key) {     new player = g_menuPlayers[id][g_nTGOMenuPosition[id] * 7 + key]     switch (key)     {         case 8: ShowTGOMenu(id,++g_nTGOMenuPosition[id])         case 9: ShowTGOMenu(id,--g_nTGOMenuPosition[id])         default: set_user_godmode(player, 1 )     }     server_exec()     ShowTGOMenu(id,g_nTGOMenuPosition[id])     return PLUGIN_HANDLED }
Put quotes around the 1:
Code:
default: set_user_godmode(player,"1")
Make sure the plugin is enabled in your plugins.ini
philman213 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 19:23.


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