AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What does reserved mean? (https://forums.alliedmods.net/showthread.php?t=5425)

devicenull 08-31-2004 20:43

What does reserved mean?
 
I have public Sql:init_sql() { which retuns a sql pointer, however the compiler says warning:208: reserved
:/
Wtf? I've tried changing it to random numbers and stuff, doesnt work

PM 09-01-2004 07:14

warning 208: reserved which appears in compiler 2.6 (I also got it several times) is an old warning that was supposed to be removed from the compiler and changed to an error but CompuPhase forgot to remove the reference that still generates it.

In an older compiler (1.8.4) the warning meant:
function uses both "return;" and "return <value>;"

Now, you should get error 078 which means exactly the same. I will post on ITB Compuphase's boards about it.

Johnny got his gun 09-01-2004 10:58

I get the same warning with this code:
Code:
stock bool:gettens(wordnumbers[], length, numberstr[]) { // warning appears on this line     new digitstr[11], bool:dont = false, bool:jumpnext = false     switch (numberstr[0]) {         case '1': {             jumpnext = true             switch (numberstr[1]) {                 case '0': digitstr = "ten"                 case '1': digitstr = "eleven"                 case '2': digitstr = "twelve"                 case '3': digitstr = "thirteen"                 case '4': digitstr = "fourteen"                 case '5': digitstr = "fifteen"                 case '6': digitstr = "sixteen"                 case '7': digitstr = "seventeen"                 case '8': digitstr = "eighteen"                 case '9': digitstr = "nineteen"                 default: digitstr = "TEENSERROR"             }         }         case '2': digitstr = "twenty"         case '3': digitstr = "thirty"         case '4': digitstr = "fourty"         case '5': digitstr = "fifty"         case '6': digitstr = "sixty"         case '7': digitstr = "seventy"         case '8': digitstr = "eighty"         case '9': digitstr = "ninety"         case '0': dont = true // do nothing         default : digitstr = "TENSERROR"     }     if (!dont)         format(wordnumbers, length, "%s %s", wordnumbers, digitstr)     return jumpnext }

With old compiler it doesn't give any warnings and works.

devicenull 09-01-2004 12:42

From what it seems, it doesnt like public functions with some type of var ..
Sql: bool: etc... Can't really test atm, because I lack the compiler


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

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