AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   error 050: invalid range (https://forums.alliedmods.net/showthread.php?t=295891)

iNvectus 04-07-2017 14:42

error 050: invalid range
 
This is the code.The lines the error is are case print_team_blue .. print_team_default. I cant do it like that or?

PHP Code:

public duel_print(idtype, const Text[], any: ... )
{
    new 
message[128]; vformatmessagecharsmaxmessage ), Text);
    switch (
type)
    {        
        case 
print_team_blue .. print_team_default// -3 .. 0
        
{
            
client_print_color(idtypemessage);
            
client_print_color(duel_props[id][duel_pair], typemessage);
        }
        case 
print_notify .. print_center// 1 .. 4
        
{
            
client_print(idtypemessage);
            
client_print(duel_props[id][duel_pair], typemessage);
        }
    }



EFFx 04-07-2017 14:45

Re: error 050: invalid range
 
Use ',' instead of '..'


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

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