Raised This Month: $51 Target: $400
 12% 

[ES][ZP] Gran bug y no se como arregarlo


  
 
 
Thread Tools Display Modes
Author Message
<-----(MATIAS)----->
Senior Member
Join Date: Aug 2009
Location: Argentina - Entre Rios
Old 01-07-2010 , 18:00   [ES][ZP] Gran bug y no se como arregarlo
#1

Hola, yo estaba restringiendo las pistols por levels y cuando compile todo bien, pero cuando entraba en el juego no estaba mas el zp, sino era normal, y en consola me aparecian muchas cosas del amx q me decia bug de no se q! Supongo q el problema esta aca!

PHP Code:
// Buy Primary Weapon
buy_primary_weapon(idselection)
{
// Get weapon index
static weaponid
weaponid 
get_weaponid(g_primary_items[selection])
 
new 
lvl lvlarmas[selection]
if(
Lvl[id] >= lvl)
{
// Drop previous weapons
drop_weapons(id1)
drop_weapons(id2)
 
// Strip off from weapons
fm_strip_user_weapons(id)
fm_give_item(id"weapon_knife")
 
// Give the new weapon
fm_give_item(idg_primary_items[selection])
fm_set_user_bpammo(idweaponidMAXBPAMMO[weaponid])
 
// Show pistols menu
show_menu_buy2(id)
}
else
{
show_menu_buy1(id)
return 
PLUGIN_HANDLED
}
 
// Weapons bought
g_canbuy[id] = false
 
return PLUGIN_CONTINUE
}
// Buy Menu 2
public menu_buy2(idselection)

new 
lvl lvlarmas2[selection]
if(
Lvl[id] >= lvl)
{
// Zombies or survivors get no guns
if (g_zombie[id] || g_survivor[id] || !is_user_alive(id))
return 
PLUGIN_HANDLED
 
// Special keys / weapon list exceeded
if (selection >= sizeof g_secondary_items)
{
// Toggle autoselect
if (selection == MENU_KEY_AUTOSELECT)
WPN_AUTO_ON WPN_AUTO_ON
 
// Reshow menu unless user exited
if (selection != MENU_KEY_EXIT)
show_menu_buy2(id)
 
return 
PLUGIN_HANDLED
}
 
// Store selected weapon
WPN_AUTO_SEC selection
 
// Drop secondary gun again, in case we picked another (bugfix)
drop_weapons(id2)
 
// Get weapon index
static weaponid
weaponid 
get_weaponid(g_secondary_items[selection])
 
// Give the new weapon with full ammo
fm_give_item(idg_secondary_items[selection])
fm_set_user_bpammo(idweaponidMAXBPAMMO[weaponid])
 
show_menu_granades(id)
 
return 
PLUGIN_HANDLED
}


Last edited by <-----(MATIAS)----->; 01-07-2010 at 18:05.
<-----(MATIAS)-----> is offline
Send a message via MSN to <-----(MATIAS)----->
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 01-07-2010 , 18:01   Re: [ES][ZP] Gran bug y no se como arregarlo
#2

tenes un clcmd sin usar seguramente..
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
<-----(MATIAS)----->
Senior Member
Join Date: Aug 2009
Location: Argentina - Entre Rios
Old 01-07-2010 , 18:03   Re: [ES][ZP] Gran bug y no se como arregarlo
#3

pero no sebes q puedo hacer?
<-----(MATIAS)-----> is offline
Send a message via MSN to <-----(MATIAS)----->
Kiske
Veteran Member
Join Date: May 2009
Old 01-07-2010 , 18:07   Re: [ES][ZP] Gran bug y no se como arregarlo
#4

Quote:
Originally Posted by <-----(MATIAS)-----> View Post
pero no sebes q puedo hacer?
Eliminarlo -.-
__________________

Kiske is offline
Send a message via Skype™ to Kiske
<-----(MATIAS)----->
Senior Member
Join Date: Aug 2009
Location: Argentina - Entre Rios
Old 01-07-2010 , 18:08   Re: [ES][ZP] Gran bug y no se como arregarlo
#5

ah, pero yo quiero restringer las pistolas por level!!! me ayudan!

pd: me olvide de decirles, me tira un warning, dice:
warning 209: function "menu_buy2" should return a value

Last edited by <-----(MATIAS)----->; 01-07-2010 at 18:13.
<-----(MATIAS)-----> is offline
Send a message via MSN to <-----(MATIAS)----->
Kiske
Veteran Member
Join Date: May 2009
Old 01-07-2010 , 18:14   Re: [ES][ZP] Gran bug y no se como arregarlo
#6

Quote:
Originally Posted by <-----(MATIAS)-----> View Post
ah, pero yo quiero restringer las pistolas por level!!! me ayudan!

pd: me olvide de decirles, me tira un warning, dice:
warning 209: function "menu_buy2" should return a value
Yo por mi parte no te pienso ayudar..

Tu Code es un Asco sinceramente, ni una Tabulacion tenes, no se entiende nada :S
__________________

Kiske is offline
Send a message via Skype™ to Kiske
<-----(MATIAS)----->
Senior Member
Join Date: Aug 2009
Location: Argentina - Entre Rios
Old 01-07-2010 , 18:20   Re: [ES][ZP] Gran bug y no se como arregarlo
#7

no tiene ninguna tabulacion aca, pero en mi zp si, lo q pasa es q lo copie y pegue de mi zp y quedo asi, todo pegado al renglon
<-----(MATIAS)-----> is offline
Send a message via MSN to <-----(MATIAS)----->
Old 01-07-2010, 18:27
[L]oL
This message has been deleted by [L]oL. Reason: Esta bien esta bien
<-----(MATIAS)----->
Senior Member
Join Date: Aug 2009
Location: Argentina - Entre Rios
Old 01-07-2010 , 18:30   Re: [ES][ZP] Gran bug y no se como arregarlo
#8

no [L]ol porfavor no lo hagas enojar a kiske, si no me quiere ayudar esta bien, pero porfavor no empiesen a peliar, te lo pido porfavor lol !!
<-----(MATIAS)-----> is offline
Send a message via MSN to <-----(MATIAS)----->
[L]oL
Senior Member
Join Date: Dec 2009
Old 01-07-2010 , 18:34   Re: [ES][ZP] Gran bug y no se como arregarlo
#9

Lo del return probalo asi mira...

PHP Code:
// Buy Primary Weapon
buy_primary_weapon(idselection)
{
// Get weapon index
static weaponid
weaponid 
get_weaponid(g_primary_items[selection])
 
new 
lvl lvlarmas[selection]
if(
Lvl[id] >= lvl)
{
// Drop previous weapons
drop_weapons(id1)
drop_weapons(id2)
 
// Strip off from weapons
fm_strip_user_weapons(id)
fm_give_item(id"weapon_knife")
 
// Give the new weapon
fm_give_item(idg_primary_items[selection])
fm_set_user_bpammo(idweaponidMAXBPAMMO[weaponid])
 
// Show pistols menu
show_menu_buy2(id)
}
else
{
show_menu_buy1(id)
return 
PLUGIN_HANDLED
}
 
// Weapons bought
g_canbuy[id] = false
 
return PLUGIN_CONTINUE
}
// Buy Menu 2
public menu_buy2(idselection)

new 
lvl lvlarmas2[selection]
if(
Lvl[id] >= lvl)
{
// Zombies or survivors get no guns
if (g_zombie[id] || g_survivor[id] || !is_user_alive(id))
return 
PLUGIN_HANDLED
 
// Special keys / weapon list exceeded
if (selection >= sizeof g_secondary_items)
{
// Toggle autoselect
if (selection == MENU_KEY_AUTOSELECT)
WPN_AUTO_ON WPN_AUTO_ON
 
// Reshow menu unless user exited
if (selection != MENU_KEY_EXIT)
show_menu_buy2(id)
 
return 
PLUGIN_HANDLED
}
 
// Store selected weapon
WPN_AUTO_SEC selection
 
// Drop secondary gun again, in case we picked another (bugfix)
drop_weapons(id2)
 
// Get weapon index
static weaponid
weaponid 
get_weaponid(g_secondary_items[selection])
 
// Give the new weapon with full ammo
fm_give_item(idg_secondary_items[selection])
fm_set_user_bpammo(idweaponidMAXBPAMMO[weaponid])
 
show_menu_granades(id)
 
}
return 
PLUGIN_HANDLED

__________________
AGUANTE EL METAL
[L]oL 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 16:37.


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