Raised This Month: $ Target: $400
 0% 

[solved]How to fix warnings here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xum
Member
Join Date: Jun 2006
Old 07-10-2006 , 11:44   Re: How to fix warnings here?
Reply With Quote #1

Thx, but here is the part i didn't understand:
Example 1: here i get warning
Code:
  public cmd_warning (id) {         if(!access(id, ADMIN_CHAT))         {                 console_print(id, "[AMXX] You have no access to this command!");                 return PLUGIN_HANDLED         }                     read_args(argMessage, 255)         set_hudmessage(130, 90, 70, -1.0, 0.45, 0, 1.0, 999991.0, 0.1, 0.2, -1)               show_hudmessage(0, argMessage) return PLUGIN_HANDLED }


Example 2: Here i don't get warning (i only moved return PLUGIN_HANDLED a little bit)
[small] public cmd_working (id)
{
if(!access(id, ADMIN_CHAT))
{
console_print(id, "[AMXX] You have no access to this command!");
return PLUGIN_HANDLED
}


read_args(argMessage, 255)
set_hudmessage(130, 90, 70, -1.0, 0.45, 0, 1.0, 999991.0, 0.1, 0.2, -1)
show_hudmessage(0, argMessage)
return PLUGIN_HANDLED
}


__________________
[IMG]http://img236.**************/img236/9858/xulogo2pq.gif[/IMG]Xu Share Website CjtServer
My Superhero 22/7 gameserver
ip: 64.94.171.241:27055 and the pasword is: qwerty

Last edited by Xum; 07-10-2006 at 11:48.
Xum 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 07:57.


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