Raised This Month: $ Target: $400
 0% 

Proper explosion dammage


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
urban_ninja
Senior Member
Join Date: Feb 2009
Old 07-23-2011 , 22:57   Re: Proper explosion dammage
#1

Ok I'm getting compiler errors with that code.
Quote:
undefined symbol "has_fakec4_player"
So I added
PHP Code:
new has_fakec4_player 
Even more compiler errors follow:
Quote:
invalid subscript<not an array or too many subscripts>"has_fakec4_player"
expected token ";" but found "]"
fatal error too many errors on one line
invalid expression assumed as zero
All errors had to do with
PHP Code:
if (!has_fakec4_player[id]) 
__________________
urban_ninja is offline
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 07-23-2011 , 23:52   Re: Proper explosion dammage
#2

Quote:
Originally Posted by urban_ninja View Post
Ok I'm getting compiler errors with that code.
So I added
PHP Code:
new has_fakec4_player 
Even more compiler errors follow:
All errors had to do with
PHP Code:
if (!has_fakec4_player[id]) 
It's definitely an array, but it might be a bool.

Try
PHP Code:
new bool:has_fakec4_player[32];

;OR

new 
has_fakec4_player[32]; 
I can't find the code, so can't confirm.
__________________

Aykay is offline
Send a message via MSN to Aykay
urban_ninja
Senior Member
Join Date: Feb 2009
Old 07-24-2011 , 01:27   Re: Proper explosion dammage
#3

Ok that fix that error and a few others but now theres yet an other compiler error saying this is an empty statement.
PHP Code:
if (!has_fakec4_player[id]); 
And its alos giving a "warning <unreachable code>" for this
PHP Code:
has_fakec4_player[id]--; 
__________________
urban_ninja is offline
Closed Thread



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


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