AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ZP] Help in adding some code, getting compile errors (https://forums.alliedmods.net/showthread.php?t=93113)

blue2kx 05-24-2009 13:13

[ZP] Help in adding some code, getting compile errors
 
1 Attachment(s)
I'm trying to add some code to the original zp_zclasses40.sma. I tried to insert code from the Regenerator Zombie. I still end up with compile errors [and warnings]... I'm not extremely knowledgeable with scripting. Could anyone help me? I'm not sure how to copy the error logs but here are the errors: zp_zclasses40.sma(95)
Code:

error 012: invalid function call, not a valid address warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect warning 215: expression has no effect error 001: expected token ";", but found ")" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
I tried posting the code here but it gets cut off. So here's the sma:

Zombie Lurker 05-25-2009 10:12

Re: [ZP] Help in adding some code, getting compile errors
 
1 Attachment(s)
Here's my specially edited zp_zclasses40.sma file. I updated my own for you to use. It is quite different from yours and should work. I'm using it on my server anyway, except mine is a sub-plugin which isnt built into the zombie classes file. Anyway here it is! :mrgreen:

NOTE : The regeneration may be more than 250 the first time you run the plugin. It should work properly the second time you run it and onwards. (That happens to my sub-plugin and regeneration zombie)


All times are GMT -4. The time now is 01:34.

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