Quote:
Originally Posted by edon1337
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T) return; /* Restrict Terrorists from using */
else //.. code ..// /* What can CTs do with it */
|
Dont do that. Despite it it will work, but there is no reason for the dangling `else` unbraced.
Do something like:
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T)
{
return; /* Restrict Terrorists from using */
}
else
{
//.. code ..// /* What can CTs do with it */
}
or
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T)
return; /* Restrict Terrorists from using */
//.. code ..// /* What can CTs do with it */
or
PHP Code:
if(cs_get_user_team(id) == CS_TEAM_T) return; /* Restrict Terrorists from using */
//.. code ..// /* What can CTs do with it */
__________________