Raised This Month: $ Target: $400
 0% 

How to make code shorter?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 09-29-2011 , 12:49   How to make code shorter?
Reply With Quote #1

Topic says it all.
PHP Code:
public Showrod(id) {
    
set_task(10.0"CancelMenu"id);
    
show_menu(idKeysrod"Choose VIP guns:^n\w1. Get M4A1 and Deagle ^n\w2. Get AK47 and Deagle ^n3. Get Galil and Deagle ^n0. Exit^n", -1"rod"// Display menu
    
new mapname[11];
         
get_mapname(mapnamecharsmax(mapname));
    if (
equali(mapname"awp_india"))
    {
             
client_cmd(id"slot10");
    }
    
get_mapname(mapnamecharsmax(mapname));
    if (
equali(mapname"awp_dust"))
    {
             
client_cmd(id"slot10");
    }
    
get_mapname(mapnamecharsmax(mapname));
    if (
equali(mapname"cs_deagle5"))
    {
             
client_cmd(id"slot10");
    }


Last edited by Evaldas.Grigas; 09-29-2011 at 14:07.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



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:31.


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