Raised This Month: $ Target: $400
 0% 

Command Unknowned. Where did i go wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 02-01-2010 , 15:48   Re: Command Unknowned. Where did i go wrong?
Reply With Quote #5

first give cmd_target a flag because otherwise it will return 0 as failure

second check if the variable player is 0, because if its 0, then cmd_target didnt find a valid target

lastly if player is 0 in client_cmd, it will think you wanted it to be executed on everyone. solution below

PHP Code:
new player cmd_target(idarg0)

if (
player != 0)
   
client_cmd(player,"connect ex.usn.ro"
__________________
M249-M4A1 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 07:23.


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