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

Errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 05-22-2016 , 11:19   Errors
Reply With Quote #1

Hello, guys! I tried to fix these errors, but i can't. Can someone help me?

//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// ZPA_DONE.sma
// E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\ZPA_DONE .sma(10230) : error 029: invalid expression, assumed zero
// E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\ZPA_DONE .sma(10230) : warning 215: expression has no effect
// E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\ZPA_DONE .sma(10230) : error 001: expected token: ";", but found "]"
// E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\ZPA_DONE .sma(10230) : error 029: invalid expression, assumed zero
// E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\ZPA_DONE .sma(10230) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file E:\CS 1.6 ZPA\cstrike\addons\amxmodx\scripting\compiled \ZPA_DONE.amx (compile failed).
//
// Compilation Time: 7.17 sec
// ----------------------------------------
Press enter to exit ...
Attached Files
File Type: sma Get Plugin or Get Source (ZPA_DONE.sma - 630 views - 396.8 KB)
GlobalPlague is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-22-2016 , 13:55   Re: Errors
Reply With Quote #2

PHP Code:
if([0] == EOS
What's that supposed to be?!
OciXCrom is offline
Send a message via Skype™ to OciXCrom
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-22-2016 , 14:31   Re: Errors
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
PHP Code:
if([0] == EOS
What's that supposed to be?!
EOS is equal to 0. It's abbreviation for End Of String. It's a constant defined by the compiler.
klippy is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-22-2016 , 14:32   Re: Errors
Reply With Quote #4

Quote:
Originally Posted by KliPPy View Post
EOS is equal to 0. It's abbreviation for End Of String. It's a constant defined by the compiler.
Shouldn't there be a variable name before specifying an array index, though?
__________________
ddhoward is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-22-2016 , 14:49   Re: Errors
Reply With Quote #5

Quote:
Originally Posted by KliPPy View Post
EOS is equal to 0. It's abbreviation for End Of String. It's a constant defined by the compiler.
Dude, look carefully. There's no variable (if that's the correct word) before it. I know what it means.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-22-2016 , 15:06   Re: Errors
Reply With Quote #6

omg,
Wtf

Quote:
if([0] == EOS)
{
copy(city, charsmax(city), "Error")
}
first of all there should be before [0] array name , i think it's city so it shall be :
city[0] but know that function that gets user city returns a error string if haven't found so you don't need to use copy.
And also i dont see where variable "city" is declared. It's nowhere..

Last edited by siriusmd99; 05-22-2016 at 15:07.
siriusmd99 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-22-2016 , 15:20   Re: Errors
Reply With Quote #7

Oh, I thought he was asking about EOS. Whoops, didn't really pay attention.
klippy is offline
Reply



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 21:48.


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