AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compilation error need fix (https://forums.alliedmods.net/showthread.php?t=295583)

ForestTea 03-30-2017 01:42

Compilation error need fix
 
1 Attachment(s)
Hello, now get this error:
Quote:

unalom_masolat.sma(303) : error 072: "sizeof" operator is invalid on "function" symbols unalom_masolat.sma(305) : error 017: undefined symbol "precache" unalom_masolat.sma(305) : warning 215: expression has no effect unalom_masolat.sma(305) : error 001: expected token: ";", but found "]" unalom_masolat.sma(305) : error 029: invalid expression, assumed zero unalom_masolat.sma(305) : fatal error 107: too many error messages on one line

OciXCrom 03-30-2017 08:40

Re: Compilation error need fix
 
Quote:

Originally Posted by edon1337 (Post 2507828)
You're using sizeof wrong.

Code:
sizeof(precache)


Should be

Code:
sizeof precache

Whaaaaat? Totally incorrect. Both codes are exactly the same.

@ForestTea - I don't know what in the world happened to that code, but it's absolute shit. There are missing brackets everywhere, no indentation and there's no "precache" variable defined anywhere on line 303.


All times are GMT -4. The time now is 17:55.

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