Raised This Month: $ Target: $400
 0% 

Multiple commands in a case?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JoooN
BANNED
Join Date: Jul 2013
Location: Ban List :P
Old 08-02-2013 , 12:11   Multiple commands in a case?
Reply With Quote #1

Hi, so i'm creating a menu, and I need to put 2 commands in case 1, so how to separate them?
Thanks for help
edit: like client_cmd <myfirstcommand> <value> <mysecondcommand> <value>

Last edited by JoooN; 08-02-2013 at 12:13.
JoooN is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-02-2013 , 12:49   Re: Multiple commands in a case?
Reply With Quote #2

Simple example:
Code:
new arg1[32], arg2[192], arg3[8], arg4[128]; read_argv(1, arg1, 31); read_argv(2, arg2, 191); read_argv(3, arg3, 7); read_argv(4, arg4, 127);
If you need further help you could explain a bit more.
__________________

Last edited by Black Rose; 08-02-2013 at 12:51.
Black Rose is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-02-2013 , 13:13   Re: Multiple commands in a case?
Reply With Quote #3

PHP Code:
case 1:{
    
client_cmd(id,"your first command;your second command")

or

PHP Code:
case 1:{
    
client_cmd(id,"your first command")
    
client_cmd(id,"your second command")

is that what you are asking about ?
akcaliberg is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-03-2013 , 10:07   Re: Multiple commands in a case?
Reply With Quote #4

Quote:
Originally Posted by akcaliberg View Post
PHP Code:
case 1:{
    
client_cmd(id,"your first command;your second command")

or

PHP Code:
case 1:{
    
client_cmd(id,"your first command")
    
client_cmd(id,"your second command")

is that what you are asking about ?
Wrong, its 2 native calls.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-03-2013 , 11:35   Re: Multiple commands in a case?
Reply With Quote #5

first one only calls 1 native. I'm just trying to guess what he is asking about
akcaliberg is offline
Reply


Thread Tools
Display Modes

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


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