Raised This Month: $ Target: $400
 0% 

[ZP] error al agregar levels al zp


  
 
 
Thread Tools Display Modes
Author Message
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 02-16-2011 , 16:28   [ZP] error al agregar levels al zp
#1

hola bueno yo ando comenzando en el scripting y comenzé a guiarme en el tuto de kiske de como crear levels hago todo como lo dice el tutorial pero al compilar me salta un error en la línea "3217" estuve viendo si esque me había comido una llave o corchete pero me sigue dando error !!!!! >>??

Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 3217
Error: Undefined symbol "attacker" on line 3217
Error: Invalid expression, assumed zero on line 3217
Error: Too many error messages on one line on line 3217

Compilation aborted.
4 Errors.
línea donde salta error

Code:
    // Deduce item cost     update_ap(attacker, get_pcvar_num(cvar_ammoinfect), 0)
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 647 views - 249.8 KB)
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]

Last edited by Sidix; 02-16-2011 at 16:30. Reason: AGREGANDO EL SMA !!!
Sidix is offline
Exc3ll@N
Veteran Member
Join Date: Oct 2009
Location: Donde me lleve el viento
Old 02-16-2011 , 16:38   Re: [ZP] error al agregar levels al zp
#2

ya probastes haci?

PHP Code:
// Deduce item cost
update_ap(idget_pcvar_num(cvar_ammoinfect), 0
__________________
Haz lo que sientas y te haga feliz.
Exc3ll@N is offline
Send a message via MSN to Exc3ll@N
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 02-16-2011 , 16:48   Re: [ZP] error al agregar levels al zp
#3

Gracias amigo ya solucioné este problema !!!!

en la public
buy_extra_item(id, itemid)

g_ammopacks[id] -= g_extraitem_cost[itemid]
x
update_ap(id, 0 - g_extraitem_cost[itemid], 0)

puse
g_ammopacks[id] -= g_extraitem_cost[itemid]
x
update_ap(attacker, get_pcvar_num(cvar_ammoinfect), 0)

me salté editar una public !!
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix is offline
Exc3ll@N
Veteran Member
Join Date: Oct 2009
Location: Donde me lleve el viento
Old 02-16-2011 , 17:28   Re: [ZP] error al agregar levels al zp
#4

xD que bueno lo solucionastes , siempre q algo de algun tut no te salga trata de leerlo trankilo varias veces
__________________
Haz lo que sientas y te haga feliz.
Exc3ll@N is offline
Send a message via MSN to Exc3ll@N
Sidix
Senior Member
Join Date: Feb 2011
Location: Limbo City
Old 02-16-2011 , 20:20   Re: [ZP] error al agregar levels al zp
#5

gracias, en la proxima prestaré mas atención y relax

pd: intento superarme
__________________
[IMG]http://img839.**************/img839/1879/dmcdanteprofile.png[/IMG]
Sidix 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 22:38.


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