AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Errors (https://forums.alliedmods.net/showthread.php?t=283004)

GlobalPlague 05-22-2016 11:19

Errors
 
1 Attachment(s)
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 ...

OciXCrom 05-22-2016 13:55

Re: Errors
 
PHP Code:

if([0] == EOS

What's that supposed to be?!

klippy 05-22-2016 14:31

Re: Errors
 
Quote:

Originally Posted by OciXCrom (Post 2421145)
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.

ddhoward 05-22-2016 14:32

Re: Errors
 
Quote:

Originally Posted by KliPPy (Post 2421162)
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?

OciXCrom 05-22-2016 14:49

Re: Errors
 
Quote:

Originally Posted by KliPPy (Post 2421162)
EOS is equal to 0. It's abbreviation for End Of String. It's a constant defined by the compiler.

Dude, look carefully. :D There's no variable (if that's the correct word) before it. I know what it means.

siriusmd99 05-22-2016 15:06

Re: Errors
 
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..

klippy 05-22-2016 15:20

Re: Errors
 
Oh, I thought he was asking about EOS. Whoops, didn't really pay attention.


All times are GMT -4. The time now is 18:33.

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