Raised This Month: $ Target: $400
 0% 

[ES][ZP] Ayuda urgente.


  
 
 
Thread Tools Display Modes
Author Message
Good
BANNED
Join Date: May 2010
Location: Argentina, Mendoza
Old 05-30-2010 , 22:08   [ES][ZP] Ayuda urgente.
#1

Hola. Disculpen por el atrevimiento pero tengo que optimizar mucho code para maņana a la maņana por que tengo que entregarlo terminado.
Tengo muchisimo code para optimizar y ya como que me arde la cabeza de tanto Pawn todo el dia.

Si alguien me hace el favor de ayudarme le agradeceria

Code:

PHP Code:
public show_menu_quest(id)
{
    new 
texto[999]
    
    if (
g_banco3[id] == 0)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 0^n\wTe faltan matar \r%d\y Zombies"g_killed[id])
    if (
g_banco3[id] == 1)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 1^n\wTe faltan matar \r%d\y Zombies"g_killed[id])
    if (
g_banco3[id] == 2)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 2^n\wTe faltan matar \r%d\y Zombies"12 g_killed[id])
    if (
g_banco3[id] == 3)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 3^n\wTe faltan matar \r%d\y Zombies"20 g_killed[id])
    if (
g_banco3[id] == 4)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 4^n\wTe faltan matar \r%d\y Zombies"30 g_killed[id])
    if (
g_banco3[id] == 5)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 5^n\wTe faltan matar \r%d\y Zombies"42 g_killed[id])
    if (
g_banco3[id] == 6)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 6^n\wTe faltan matar \r%d\y Zombies"54 g_killed[id])
    if (
g_banco3[id] == 7)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 7^n\wTe faltan matar \r%d\y Zombies"66 g_killed[id])
    if (
g_banco3[id] == 8)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 8^n\wTe faltan matar \r%d\y Zombies"78 g_killed[id])
    if (
g_banco3[id] == 9)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 9^n\wTe faltan matar \r%d\y Zombies"90 g_killed[id])
    if (
g_banco3[id] == 10)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 10^n\wTe faltan matar \r%d\y Zombies"102 g_killed[id])
    if (
g_banco3[id] == 11)
        
formatex(textocharsmax(texto), "\wQuest - Level[Q]: 11^n\wESTAS FULL YA NO PUEDES REALIZAR MAS QUEST")
    
    
    new 
Menu1 menu_create(texto"menu_quest")
    
    if (
g_banco3[id] == 0)
    {
        if (
g_killed[id] >= 3)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 500 Ammopack \y[Requerido 3 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 500 Ammopack \y[Requerido 3 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 1)
    {
        if (
g_killed[id] >= 6)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 1000 Ammopack \y[Requerido 6 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 1000 Ammopack \y[Requerido 6 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 2)
    {
        if (
g_killed[id] >= 12)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 1500 Ammopack \y[Requerido 12 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 1500 Ammopack \y[Requerido 12 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 3)
    {
        if (
g_killed[id] >= 20)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 2000 Ammopack \y[Requerido 20 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 2000 Ammopack \y[Requerido 20 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 4)
    {
        if (
g_killed[id] >= 30)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 2500 Ammopack \y[Requerido 30 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 2500 Ammopack \y[Requerido 30 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 5)
    {
        if (
g_killed[id] >= 42)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 3000 Ammopack \y[Requerido 42 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 3000 Ammopack \y[Requerido 42 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 6)
    {
        if (
g_killed[id] >= 54)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 3500 Ammopack \y[Requerido 54 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 3500 Ammopack \y[Requerido 54 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 7)
    {
        if (
g_killed[id] >= 66)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 4000 Ammopack \y[Requerido 66 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 4000 Ammopack \y[Requerido 66 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 8)
    {
        if (
g_killed[id] >= 78)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 4500 Ammopacks \y[Requerido 78 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 4500 Ammopack \y[Requerido 78 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 9)
    {
        if (
g_killed[id] >= 90)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 5000 Ammopack \y[Requerido 90 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 5000 Ammopack \y[Requerido 90 Zombies Matados]""1"0)
    }
    else if (
g_banco3[id] == 10)
    {
        if (
g_killed[id] >= 102)
            
menu_additem(Menu1"\r[COMPLETO]\w Ganar 6000 Ammopack \y[Requerido 102 Zombies Matados]""1"0)
        else
            
menu_additem(Menu1"\dGanar 6000 Ammopack \y[Requerido 102 Zombies Matados]""1"0)
    }
    
    
menu_setprop(Menu1,MPROP_EXITNAME,"\wSalir")
    
menu_setprop(Menu1MPROP_EXITMEXIT_ALL)
    
menu_display(idMenu10)
    return 
PLUGIN_HANDLED

Good is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 05-30-2010 , 22:13   Re: [ES][ZP] Ayuda urgente.
#2

no mire mucho, pero arriba usa un switch o pone else if
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Good
BANNED
Join Date: May 2010
Location: Argentina, Mendoza
Old 05-30-2010 , 22:19   Re: [ES][ZP] Ayuda urgente.
#3

Listo, osea mi tema es el siguiente.
Me pidieron que isiera un plugin para una comunidad, ellos ya me depositaron $50 en en una cuenta de dinero mail, tonces me tengo que encargar de no fallarle, no me fallaron ellos ya me pagaron.
Good is offline
[ZC]ACA
BANNED
Join Date: May 2010
Old 05-30-2010 , 22:32   Re: [ES][ZP] Ayuda urgente.
#4

Que pelotudos fueron, no sabes optimizar mi zbug lol.
PD: Ese plugin no sera mi zbug "optimizado" no? JAJAJAJ
[ZC]ACA is offline
Good
BANNED
Join Date: May 2010
Location: Argentina, Mendoza
Old 05-30-2010 , 22:36   Re: [ES][ZP] Ayuda urgente.
#5

Claro pero no puedo poner esa cantidad de code, quiero poner lo menos posible.
Good is offline
Old 05-30-2010, 22:37
[ZC]ACA
This message has been deleted by [ZC]ACA.
[ZC]ACA
BANNED
Join Date: May 2010
Old 05-30-2010 , 22:44   Re: [ES][ZP] Ayuda urgente.
#6

Omg que fail sos juancruz

Usa for y const's.

PD: Quien te paga Eso? si queres decilo por msn o pm
[ZC]ACA 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 01:34.


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